summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit82787e90f307ab2b30813858fb3492146434308a (patch)
tree3e013a91c338cf5157d303c97eae3c5c43235adb /llvm/lib/Target/PowerPC/PPC32ISelSimple.cpp
parent73bb15ed9a1b5011cfc5d8a0b505ac2193435a9f (diff)
downloadbcm5719-llvm-82787e90f307ab2b30813858fb3492146434308a.tar.gz
bcm5719-llvm-82787e90f307ab2b30813858fb3492146434308a.zip
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. llvm-svn: 19263
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPC32ISelSimple.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPC32ISelSimple.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/PowerPC/PPC32ISelSimple.cpp b/llvm/lib/Target/PowerPC/PPC32ISelSimple.cpp
index a56416de5a9..13f68ba8949 100644
--- a/llvm/lib/Target/PowerPC/PPC32ISelSimple.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud