[llvm-commits] [llvm] r53378 - /llvm/trunk/lib/CodeGen/RegAllocLocal.cpp

Owen Anderson resistor at mac.com
Wed Jul 9 16:09:10 PDT 2008


Author: resistor
Date: Wed Jul  9 18:09:10 2008
New Revision: 53378

URL: http://llvm.org/viewvc/llvm-project?rev=53378&view=rev
Log:
Revert r53367, which was breaking things.

Modified:
    llvm/trunk/lib/CodeGen/RegAllocLocal.cpp

Modified: llvm/trunk/lib/CodeGen/RegAllocLocal.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/RegAllocLocal.cpp?rev=53378&r1=53377&r2=53378&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/RegAllocLocal.cpp (original)
+++ llvm/trunk/lib/CodeGen/RegAllocLocal.cpp Wed Jul  9 18:09:10 2008
@@ -592,7 +592,9 @@
           
           // If this is a two address instr, then we don't mark the def
           // as killing the use.
-          if (last->second.first == I) {
+          if (last->second.first == I &&
+              I->getDesc().getOperandConstraint(last->second.second,
+                                                TOI::TIED_TO) == (signed)i) {
             LastUseDef[MO.getReg()] = std::make_pair(I, i);
             continue;
           }





More information about the llvm-commits mailing list