Skip to content
  1. May 18, 2012
    • Eric Christopher's avatar
      Remove duplicate code that we could just fallthrough to. · e2b36ce2
      Eric Christopher authored
      llvm-svn: 157060
      e2b36ce2
    • Jakob Stoklund Olesen's avatar
      Simplify RegisterCoalescer::copyCoalesceInMBB(). · b954b91a
      Jakob Stoklund Olesen authored
      It is no longer necessary to separate VirtCopies, PhysCopies, and
      ImpDefCopies. Implicitly defined copies are extremely rare after we
      added the ProcessImplicitDefs pass, and physical register copies are not
      joined any longer.
      
      llvm-svn: 157059
      b954b91a
    • Jakob Stoklund Olesen's avatar
      Remove support for PhysReg joining. · d78d7b05
      Jakob Stoklund Olesen authored
      This has been disabled for a while, and it is not a feature we want to
      support. Copies between physical and virtual registers are eliminated by
      good hinting support in the register allocator. Joining virtual and
      physical registers is really a form of register allocation, and the
      coalescer is not properly equipped to do that. In particular, it cannot
      backtrack coalescing decisions, and sometimes that would cause it to
      create programs that were impossible to register allocate, by exhausting
      a small register class.
      
      It was also very difficult to keep track of the live ranges of aliasing
      registers when extending the live range of a physreg. By disabling
      physreg joining, we can let fixed physreg live ranges remain constant
      throughout the register allocator super-pass.
      
      One type of physreg joining remains: A virtual register that has a
      single value which is a copy of a reserved register can be merged into
      the reserved physreg. This always lowers register pressure, and since we
      don't compute live ranges for reserved registers, there are no problems
      with aliases.
      
      llvm-svn: 157055
      d78d7b05
    • Stepan Dyatkovskiy's avatar
      Recommited reworked r156804: · b638ee0e
      Stepan Dyatkovskiy authored
      SelectionDAGBuilder::Clusterify : main functinality was replaced with CRSBuilder::optimize, so big part of Clusterify's code was reduced.
      
      llvm-svn: 157046
      b638ee0e
    • Evan Cheng's avatar
      Teach two-address pass to update the "source" map so it doesn't perform a · 22d405f5
      Evan Cheng authored
      non-profitable commute using outdated info. The test case would still fail
      because of poor pre-RA schedule. That will be fixed by MI scheduler.
      
      rdar://11472010
      
      llvm-svn: 157038
      22d405f5
    • Andrew Trick's avatar
      comments · 6a50baa2
      Andrew Trick authored
      llvm-svn: 157020
      6a50baa2
  2. May 17, 2012
  3. May 16, 2012
    • Jakob Stoklund Olesen's avatar
      Set sub-register <undef> flags more accurately. · ab482839
      Jakob Stoklund Olesen authored
      When widening an existing <def,reads-undef> operand to a super-register,
      it may be necessary to clear the <undef> flag because the wider register
      is now read-modify-write through the instruction.
      
      Conversely, it may be necessary to add an <undef> flag when the
      coalescer turns a full-register def into a sub-register def, but the
      larger register wasn't live before the instruction.
      
      This happens in test/CodeGen/ARM/coalesce-subregs.ll, but the test
      is too small for the <undef> flags to affect the generated code.
      
      llvm-svn: 156951
      ab482839
    • Duncan Sands's avatar
      Fix a thinko in DisintegrateMERGE_VALUES. Patch by Xiaoyi Guo. · 49080cd9
      Duncan Sands authored
      llvm-svn: 156909
      49080cd9
    • Jakob Stoklund Olesen's avatar
      Enable sub-sub-register copy coalescing. · 984997b3
      Jakob Stoklund Olesen authored
      It is now possible to coalesce weird skewed sub-register copies by
      picking a super-register class larger than both original registers. The
      included test case produces code like this:
      
        vld2.32 {d16, d17, d18, d19}, [r0]!
        vst2.32 {d18, d19, d20, d21}, [r0]
      
      We still perform interference checking as if it were a normal full copy
      join, so this is still quite conservative. In particular, the f1 and f2
      functions in the included test case still have remaining copies because
      of false interference.
      
      llvm-svn: 156878
      984997b3
    • Jakob Stoklund Olesen's avatar
      Teach RegisterCoalescer to handle symmetric sub-register copies. · a1626369
      Jakob Stoklund Olesen authored
      It is possible to coalesce two overlapping registers to a common
      super-register that it larger than both of the original registers.
      
      The important difference is that it may be necessary to rewrite DstReg
      operands as well as SrcReg operands because the sub-register index has
      changed.
      
      This behavior is still disabled by CoalescerPair.
      
      llvm-svn: 156869
      a1626369
    • Jakob Stoklund Olesen's avatar
      Handle NewReg==OldReg in renameRegister(). · 385970f2
      Jakob Stoklund Olesen authored
      This can happen when widening a virtual register to a super-register
      class.
      
      llvm-svn: 156867
      385970f2
    • Jakob Stoklund Olesen's avatar
      We never call adjustCopiesBackFrom() for partial copies. · 1c6a2223
      Jakob Stoklund Olesen authored
      There is no need to look at an always null SrcIdx.
      
      llvm-svn: 156866
      1c6a2223
  4. May 15, 2012
  5. May 14, 2012
  6. May 12, 2012
  7. May 11, 2012
  8. May 10, 2012
Loading