Skip to content
  1. May 08, 2009
    • Bob Wilson's avatar
      Fix pr4100. Do not remove no-op copies when they are dead. The register · e20be418
      Bob Wilson authored
      scavenger gets confused about register liveness if it doesn't see them.
      I'm not thrilled with this solution, but it only comes up when there are dead
      copies in the code, which is something that hopefully doesn't happen much.
      
      Here is what happens in pr4100: As shown in the following excerpt from the
      debug output of llc, the source of a move gets reloaded from the stack,
      inserting a new load instruction before the move.  Since that source operand
      is a kill, the physical register is free to be reused for the destination
      of the move.  The move ends up being a no-op, copying R3 to R3, so it is
      deleted.  But, it leaves behind the load to reload %reg1028 into R3, and
      that load is not updated to show that it's destination operand (R3) is dead.
      The scavenger gets confused by that load because it thinks that R3 is live.
      
      Starting RegAlloc of: %reg1025<def,dead> = MOVr %reg1028<kill>, 14, %reg0, %reg0
        Regs have values: 
        Reloading %reg1028 into R3
        Last use of R3[%reg1028], removing it from live set
        Assigning R3 to %reg1025
        Register R3 [%reg1025] is never used, removing it from live set
      
      Alternative solutions might be either marking the load as dead, or zapping
      the load along with the no-op copy.  I couldn't see an easy way to do
      either of those, though.
      
      llvm-svn: 71196
      e20be418
  2. May 07, 2009
  3. May 06, 2009
  4. May 05, 2009
    • Dan Gohman's avatar
      If a MachineBasicBlock has multiple ways of reaching another block, · bb2f1075
      Dan Gohman authored
      allow it to have multiple CFG edges to that block. This is needed
      to allow MachineBasicBlock::isOnlyReachableByFallthrough to work
      correctly. This fixes PR4126.
      
      llvm-svn: 71018
      bb2f1075
    • Bill Wendling's avatar
      Temporarily reverting r71008. It was causing this failure: · 5e2ac0cd
      Bill Wendling authored
      Running /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvm.src/test/
      CodeGen/X86/dg.exp ...
      FAIL: /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvm.src/test/
      CodeGen/X86/change-compare-stride-1.ll
      Failed with exit(1) at line 2
      while running: grep {cmpq       $-478,} change-compare-stride-1.ll.tmp
      child process exited abnormally
      
      llvm-svn: 71013
      5e2ac0cd
Loading