[llvm-commits] CVS: llvm/lib/CodeGen/RegAllocLocal.cpp
Alkis Evlogimenos
alkis at cs.uiuc.edu
Fri Dec 5 05:32:01 PST 2003
Changes in directory llvm/lib/CodeGen:
RegAllocLocal.cpp updated: 1.31 -> 1.32
---
Log message:
Make assertion stricter. Since the source operands are allocated at
this point, the second operand must be a physical register (it cannot
be a virtual one).
---
Diffs of the changes: (+1 -1)
Index: llvm/lib/CodeGen/RegAllocLocal.cpp
diff -u llvm/lib/CodeGen/RegAllocLocal.cpp:1.31 llvm/lib/CodeGen/RegAllocLocal.cpp:1.32
--- llvm/lib/CodeGen/RegAllocLocal.cpp:1.31 Tue Nov 11 16:41:32 2003
+++ llvm/lib/CodeGen/RegAllocLocal.cpp Fri Dec 5 05:31:39 2003
@@ -583,7 +583,7 @@
if (TM->getInstrInfo().isTwoAddrInstr(MI->getOpcode()) && i == 0) {
// must be same register number as the first operand
// This maps a = b + c into b += c, and saves b into a's spot
- assert(MI->getOperand(1).isRegister() &&
+ assert(MI->getOperand(1).isPhysicalRegister() &&
MI->getOperand(1).getAllocatedRegNum() &&
MI->getOperand(1).opIsUse() &&
"Two address instruction invalid!");
More information about the llvm-commits
mailing list