[llvm-commits] CVS: llvm/lib/Target/Sparc/InstrSelection/InstrSelectionSupport.cpp
Alkis Evlogimenos
alkis at cs.uiuc.edu
Fri Feb 13 15:02:22 PST 2004
Changes in directory llvm/lib/Target/Sparc/InstrSelection:
InstrSelectionSupport.cpp updated: 1.62 -> 1.63
---
Log message:
Remove getAllocatedRegNum(). Use getReg() instead.
---
Diffs of the changes: (+2 -1)
Index: llvm/lib/Target/Sparc/InstrSelection/InstrSelectionSupport.cpp
diff -u llvm/lib/Target/Sparc/InstrSelection/InstrSelectionSupport.cpp:1.62 llvm/lib/Target/Sparc/InstrSelection/InstrSelectionSupport.cpp:1.63
--- llvm/lib/Target/Sparc/InstrSelection/InstrSelectionSupport.cpp:1.62 Wed Feb 11 14:47:33 2004
+++ llvm/lib/Target/Sparc/InstrSelection/InstrSelectionSupport.cpp Fri Feb 13 15:01:19 2004
@@ -71,7 +71,8 @@
opType = isSigned? MachineOperand::MO_SignExtendedImmed
: MachineOperand::MO_UnextendedImmed;
getImmedValue = intValue;
- } else if (intValue == 0 && target.getRegInfo().getZeroRegNum() >= 0) {
+ } else if (intValue == 0 &&
+ target.getRegInfo().getZeroRegNum() != (unsigned)-1) {
opType = MachineOperand::MO_MachineRegister;
getMachineRegNum = target.getRegInfo().getZeroRegNum();
}
More information about the llvm-commits
mailing list