[llvm-commits] CVS: llvm/lib/Target/X86/InstSelectSimple.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri Dec 13 07:08:00 PST 2002
Changes in directory llvm/lib/Target/X86:
InstSelectSimple.cpp updated: 1.66 -> 1.67
---
Log message:
Fix bork in doMultiply
---
Diffs of the changes:
Index: llvm/lib/Target/X86/InstSelectSimple.cpp
diff -u llvm/lib/Target/X86/InstSelectSimple.cpp:1.66 llvm/lib/Target/X86/InstSelectSimple.cpp:1.67
--- llvm/lib/Target/X86/InstSelectSimple.cpp:1.66 Fri Dec 13 07:04:04 2002
+++ llvm/lib/Target/X86/InstSelectSimple.cpp Fri Dec 13 07:07:42 2002
@@ -684,10 +684,11 @@
/// with the EAX register explicitly.
///
void ISel::visitMul(BinaryOperator &I) {
+ unsigned DestReg = getReg(I);
+ unsigned Op0Reg = getReg(I.getOperand(0));
+ unsigned Op1Reg = getReg(I.getOperand(1));
MachineBasicBlock::iterator MBBI = BB->end();
- doMultiply (getReg (I), I.getType (),
- getReg (I.getOperand (0)), getReg (I.getOperand (1)),
- BB, MBBI);
+ doMultiply(DestReg, I.getType(), Op0Reg, Op1Reg, BB, MBBI);
}
More information about the llvm-commits
mailing list