[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPC32ISelSimple.cpp
Chris Lattner
lattner at persephone.cs.uiuc.edu
Sun Jan 2 15:07:49 PST 2005
Changes in directory llvm/lib/Target/PowerPC:
PPC32ISelSimple.cpp updated: 1.118 -> 1.119
---
Log message:
This hunk:
- unsigned TrueValue = getReg(TrueVal, BB, BB->begin());
+ unsigned TrueValue = getReg(TrueVal);
Fixes the PPC regressions from last night.
The other hunk is just a clarity improvement.
---
Diffs of the changes: (+2 -2)
Index: llvm/lib/Target/PowerPC/PPC32ISelSimple.cpp
diff -u llvm/lib/Target/PowerPC/PPC32ISelSimple.cpp:1.118 llvm/lib/Target/PowerPC/PPC32ISelSimple.cpp:1.119
--- llvm/lib/Target/PowerPC/PPC32ISelSimple.cpp:1.118 Sat Jan 1 10:10:12 2005
+++ llvm/lib/Target/PowerPC/PPC32ISelSimple.cpp Sun Jan 2 17:07:31 2005
@@ -1435,7 +1435,7 @@
// fallthrough --> copy0MBB
MachineBasicBlock *copy0MBB = new MachineBasicBlock(LLVM_BB);
MachineBasicBlock *sinkMBB = new MachineBasicBlock(LLVM_BB);
- unsigned TrueValue = getReg(TrueVal, BB, BB->begin());
+ unsigned TrueValue = getReg(TrueVal);
BuildMI(BB, Opcode, 2).addReg(PPC::CR0).addMBB(sinkMBB);
F->getBasicBlockList().insert(It, copy0MBB);
F->getBasicBlockList().insert(It, sinkMBB);
@@ -1447,7 +1447,7 @@
// %FalseValue = ...
// # fallthrough to sinkMBB
BB = copy0MBB;
- unsigned FalseValue = getReg(FalseVal, BB, BB->begin());
+ unsigned FalseValue = getReg(FalseVal);
// Update machine-CFG edges
BB->addSuccessor(sinkMBB);
More information about the llvm-commits
mailing list