[llvm-commits] CVS: llvm/lib/CodeGen/VirtRegMap.cpp
Evan Cheng
evan.cheng at apple.com
Wed Dec 6 16:46:19 PST 2006
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()) {
More information about the llvm-commits
mailing list