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

Owen Anderson resistor at mac.com
Wed Jul 9 14:34:36 PDT 2008


Author: resistor
Date: Wed Jul  9 16:34:36 2008
New Revision: 53367

URL: http://llvm.org/viewvc/llvm-project?rev=53367&view=rev
Log:
Loosen our check here.  Local regalloc only cares that the reg is used and def'd by the same instruction, but about the details of
the relationship.

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=53367&r1=53366&r2=53367&view=diff

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





More information about the llvm-commits mailing list