Skip to content
  1. Jan 31, 2012
  2. Jan 05, 2012
    • Jakob Stoklund Olesen's avatar
      Freeze reserved registers before starting register allocation. · d19d3cab
      Jakob Stoklund Olesen authored
      The register allocators don't currently support adding reserved
      registers while they are running.  Extend the MRI API to keep track of
      the set of reserved registers when register allocation started.
      
      Target hooks like hasFP() and needsStackRealignment() can look at this
      set to avoid reserving more registers during register allocation.
      
      llvm-svn: 147577
      d19d3cab
  3. Dec 07, 2011
    • Evan Cheng's avatar
      Add bundle aware API for querying instruction properties and switch the code · 7f8e563a
      Evan Cheng authored
      generator to it. For non-bundle instructions, these behave exactly the same
      as the MC layer API.
      
      For properties like mayLoad / mayStore, look into the bundle and if any of the
      bundled instructions has the property it would return true.
      For properties like isPredicable, only return true if *all* of the bundled
      instructions have the property.
      For properties like canFoldAsLoad, isCompare, conservatively return false for
      bundles.
      
      llvm-svn: 146026
      7f8e563a
  4. Nov 22, 2011
  5. Nov 15, 2011
  6. Jul 02, 2011
  7. Jun 28, 2011
  8. Jun 22, 2011
  9. Jun 13, 2011
    • Jakob Stoklund Olesen's avatar
      Be less aggressive about hinting in RAFast. · fb03a92c
      Jakob Stoklund Olesen authored
      In particular, don't spill dirty registers only to satisfy a hint. It is
      not worth it.
      
      The attached test case provides an example where the fast allocator
      would spill a register when other registers are available.
      
      llvm-svn: 132900
      fb03a92c
  10. Jun 03, 2011
    • Jakob Stoklund Olesen's avatar
      Avoid calling TRI->getAllocatableSet in RAFast. · 4b0bb839
      Jakob Stoklund Olesen authored
      When compiling a program with lots of small functions like
      483.xalancbmk, this makes RAFast 11% faster.
      
      Add some comments to clarify the difference between unallocatable and
      reserved registers. It's quite subtle.
      
      The fast register allocator depends on EFLAGS' not being allocatable on
      x86. That way it can completely avoid tracking liveness, and it won't
      mind when there are multiple uses of a single def.
      
      llvm-svn: 132514
      4b0bb839
  11. Jun 02, 2011
  12. Apr 22, 2011
    • Evan Cheng's avatar
      Typo · 8ea3af47
      Evan Cheng authored
      llvm-svn: 129970
      8ea3af47
  13. Apr 18, 2011
  14. Apr 13, 2011
  15. Apr 12, 2011
  16. Feb 04, 2011
  17. Jan 10, 2011
  18. Jan 09, 2011
  19. Dec 08, 2010
  20. Oct 19, 2010
    • Owen Anderson's avatar
      Get rid of static constructors for pass registration. Instead, every pass... · 6c18d1aa
      Owen Anderson authored
      Get rid of static constructors for pass registration.  Instead, every pass exposes an initializeMyPassFunction(), which
      must be called in the pass's constructor.  This function uses static dependency declarations to recursively initialize
      the pass's dependencies.
      
      Clients that only create passes through the createFooPass() APIs will require no changes.  Clients that want to use the
      CommandLine options for passes will need to manually call the appropriate initialization functions in PassInitialization.h
      before parsing commandline arguments.
      
      I have tested this with all standard configurations of clang and llvm-gcc on Darwin.  It is possible that there are problems
      with the static dependencies that will only be visible with non-standard options.  If you encounter any crash in pass
      registration/creation, please send the testcase to me directly.
      
      llvm-svn: 116820
      6c18d1aa
  21. Sep 10, 2010
  22. Sep 03, 2010
  23. Sep 01, 2010
  24. Aug 31, 2010
  25. Aug 21, 2010
  26. Aug 06, 2010
  27. Aug 04, 2010
  28. Jul 29, 2010
    • Jakob Stoklund Olesen's avatar
      Fix a bug in the -regalloc=fast handling of exotic two-address instruction with · 36cf1190
      Jakob Stoklund Olesen authored
      multiple defs, like t2LDRSB_POST.
      
      The first def could accidentally steal the physreg that the second, tied def was
      required to be allocated to.
      
      Now, the tied use-def is treated more like an early clobber, and the physreg is
      reserved before allocating the other defs.
      
      This would never be a problem when the tied def was the only def which is the
      usual case.
      
      This fixes MallocBench/gs for thumb2 -O0.
      
      llvm-svn: 109715
      36cf1190
  29. Jul 20, 2010
  30. Jul 16, 2010
Loading