[llvm-commits] CVS: llvm/lib/CodeGen/RegAllocSimple.cpp VirtRegMap.cpp
Evan Cheng
evan.cheng at apple.com
Fri Dec 8 10:46:03 PST 2006
Changes in directory llvm/lib/CodeGen:
RegAllocSimple.cpp updated: 1.80 -> 1.81
VirtRegMap.cpp updated: 1.87 -> 1.88
---
Log message:
Move findTiedToSrcOperand to TargetInstrDescriptor.
---
Diffs of the changes: (+3 -4)
RegAllocSimple.cpp | 3 +--
VirtRegMap.cpp | 4 ++--
2 files changed, 3 insertions(+), 4 deletions(-)
Index: llvm/lib/CodeGen/RegAllocSimple.cpp
diff -u llvm/lib/CodeGen/RegAllocSimple.cpp:1.80 llvm/lib/CodeGen/RegAllocSimple.cpp:1.81
--- llvm/lib/CodeGen/RegAllocSimple.cpp:1.80 Fri Dec 8 01:59:51 2006
+++ llvm/lib/CodeGen/RegAllocSimple.cpp Fri Dec 8 12:45:48 2006
@@ -198,8 +198,7 @@
unsigned physReg = Virt2PhysRegMap[virtualReg];
if (physReg == 0) {
if (op.isDef()) {
- int TiedOp = TM->getInstrInfo()->
- findTiedToSrcOperand(MI->getInstrDescriptor(), i);
+ int TiedOp = MI->getInstrDescriptor()->findTiedToSrcOperand(i);
if (TiedOp == -1) {
physReg = getFreeReg(virtualReg);
} else {
Index: llvm/lib/CodeGen/VirtRegMap.cpp
diff -u llvm/lib/CodeGen/VirtRegMap.cpp:1.87 llvm/lib/CodeGen/VirtRegMap.cpp:1.88
--- llvm/lib/CodeGen/VirtRegMap.cpp:1.87 Fri Dec 8 02:02:34 2006
+++ llvm/lib/CodeGen/VirtRegMap.cpp Fri Dec 8 12:45:48 2006
@@ -99,7 +99,7 @@
ModRef MRInfo;
const TargetInstrDescriptor *TID = OldMI->getInstrDescriptor();
if (TID->getOperandConstraint(OpNo, TOI::TIED_TO) != -1 ||
- TII.findTiedToSrcOperand(TID, OpNo) != -1) {
+ TID->findTiedToSrcOperand(OpNo) != -1) {
// Folded a two-address operand.
MRInfo = isModRef;
} else if (OldMI->getOperand(OpNo).isDef()) {
@@ -851,7 +851,7 @@
// If this def is part of a two-address operand, make sure to execute
// the store from the correct physical register.
unsigned PhysReg;
- int TiedOp = TII->findTiedToSrcOperand(MI.getInstrDescriptor(), i);
+ int TiedOp = MI.getInstrDescriptor()->findTiedToSrcOperand(i);
if (TiedOp != -1)
PhysReg = MI.getOperand(TiedOp).getReg();
else {
More information about the llvm-commits
mailing list