[llvm-commits] [llvm] r65681 - in /llvm/branches/Apple/Dib: lib/CodeGen/VirtRegMap.cpp test/CodeGen/ARM/2009-02-27-SpillerBug.ll

Bill Wendling isanbard at gmail.com
Fri Feb 27 23:32:59 PST 2009


Author: void
Date: Sat Feb 28 01:32:59 2009
New Revision: 65681

URL: http://llvm.org/viewvc/llvm-project?rev=65681&view=rev
Log:
Merge r65679 into Dib:

Last commit accidentially deleted this code.

Added:
    llvm/branches/Apple/Dib/test/CodeGen/ARM/2009-02-27-SpillerBug.ll
      - copied unchanged from r65679, llvm/trunk/test/CodeGen/ARM/2009-02-27-SpillerBug.ll
Modified:
    llvm/branches/Apple/Dib/lib/CodeGen/VirtRegMap.cpp

Modified: llvm/branches/Apple/Dib/lib/CodeGen/VirtRegMap.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Dib/lib/CodeGen/VirtRegMap.cpp?rev=65681&r1=65680&r2=65681&view=diff

==============================================================================
--- llvm/branches/Apple/Dib/lib/CodeGen/VirtRegMap.cpp (original)
+++ llvm/branches/Apple/Dib/lib/CodeGen/VirtRegMap.cpp Sat Feb 28 01:32:59 2009
@@ -1637,6 +1637,10 @@
             PotentialDeadStoreSlots.push_back(ReuseSlot);
           }
 
+          // Assumes this is the last use. IsKill will be unset if reg is reused
+          // unless it's a two-address operand.
+          if (ti == -1)
+            MI.getOperand(i).setIsKill();
           continue;
         }  // CanReuse
         





More information about the llvm-commits mailing list