aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/PowerPC/PPC32ISelSimple.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-01-02 23:07:31 +0000
committerChris Lattner <sabre@nondot.org>2005-01-02 23:07:31 +0000
commit35e5c7c186338c788b5476a0e722db4386b58856 (patch)
treeddeaaaf179933808a008bd3cb73e51d5b27d158f /lib/Target/PowerPC/PPC32ISelSimple.cpp
parent709b27424404529fc56735981367ae4ee9b81c18 (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19263 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPC32ISelSimple.cpp')
-rw-r--r--lib/Target/PowerPC/PPC32ISelSimple.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/PowerPC/PPC32ISelSimple.cpp b/lib/Target/PowerPC/PPC32ISelSimple.cpp
index a56416de5a..13f68ba894 100644
--- a/lib/Target/PowerPC/PPC32ISelSimple.cpp
+++ b/lib/Target/PowerPC/PPC32ISelSimple.cpp
@@ -1435,7 +1435,7 @@ void PPC32ISel::emitSelectOperation(MachineBasicBlock *MBB,
// 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 @@ void PPC32ISel::emitSelectOperation(MachineBasicBlock *MBB,
// %FalseValue = ...
// # fallthrough to sinkMBB
BB = copy0MBB;
- unsigned FalseValue = getReg(FalseVal, BB, BB->begin());
+ unsigned FalseValue = getReg(FalseVal);
// Update machine-CFG edges
BB->addSuccessor(sinkMBB);