Changes in directory llvm/lib/CodeGen:

VirtRegMap.cpp updated: 1.82 -> 1.83
---
Log message:

getOperandConstraint returns -1 if the operand does have the specific 
constraint. This bug was causing excessive spills.

---
Diffs of the changes:  (+1 -1)

 VirtRegMap.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/CodeGen/VirtRegMap.cpp
diff -u llvm/lib/CodeGen/VirtRegMap.cpp:1.82 
llvm/lib/CodeGen/VirtRegMap.cpp:1.83
--- llvm/lib/CodeGen/VirtRegMap.cpp:1.82        Wed Dec  6 11:46:31 2006
+++ llvm/lib/CodeGen/VirtRegMap.cpp     Wed Dec  6 18:46:04 2006
@@ -97,7 +97,7 @@
   }
 
   ModRef MRInfo;
-  if (TII.getOperandConstraint(OldMI->getOpcode(), OpNo, TOI::TIED_TO)) {
+  if (TII.getOperandConstraint(OldMI->getOpcode(), OpNo, TOI::TIED_TO) != -1) {
     // Folded a two-address operand.
     MRInfo = isModRef;
   } else if (OldMI->getOperand(OpNo).isDef()) {



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to