diff options
author | Nate Begeman <natebegeman@mac.com> | 2005-03-30 19:38:35 +0000 |
---|---|---|
committer | Nate Begeman <natebegeman@mac.com> | 2005-03-30 19:38:35 +0000 |
commit | fdcf3418e0618b435fdb07decec87e35feefc95f (patch) | |
tree | fabbb429df437ddb612d2e6229a5350df0327706 /lib/Target/PowerPC/PPC32ISelSimple.cpp | |
parent | 109d9e859221e38508a6ebe6c877d9e13ed6d7b4 (diff) |
Fix calls whose arguments fit entirely in registers to not break the Chain.
Implement SINT_TO_FP and UINT_TO_FP
Remove some dead code from the simple ISel
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20944 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPC32ISelSimple.cpp')
-rw-r--r-- | lib/Target/PowerPC/PPC32ISelSimple.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/Target/PowerPC/PPC32ISelSimple.cpp b/lib/Target/PowerPC/PPC32ISelSimple.cpp index 0044b05f54..78d16885c0 100644 --- a/lib/Target/PowerPC/PPC32ISelSimple.cpp +++ b/lib/Target/PowerPC/PPC32ISelSimple.cpp @@ -683,7 +683,6 @@ void PPC32ISel::copyConstantToRegister(MachineBasicBlock *MBB, assert(Ty == Type::FloatTy || Ty == Type::DoubleTy && "Unknown FP type!"); // Load addr of constant to reg; constant is located at base + distance - unsigned GlobalBase = makeAnotherReg(Type::IntTy); unsigned Reg1 = makeAnotherReg(Type::IntTy); unsigned Opcode = (Ty == Type::FloatTy) ? PPC::LFS : PPC::LFD; // Move value at base + distance into return reg @@ -695,8 +694,6 @@ void PPC32ISel::copyConstantToRegister(MachineBasicBlock *MBB, BuildMI(*MBB, IP, PPC::LI, 1, R).addSImm(0); } else if (GlobalValue *GV = dyn_cast<GlobalValue>(C)) { // GV is located at base + distance - - unsigned GlobalBase = makeAnotherReg(Type::IntTy); unsigned TmpReg = makeAnotherReg(GV->getType()); // Move value at base + distance into return reg @@ -3337,7 +3334,6 @@ void PPC32ISel::emitCastOperation(MachineBasicBlock *MBB, int ValueFrameIdx = F->getFrameInfo()->CreateStackObject(Type::DoubleTy, TM.getTargetData()); - MachineConstantPool *CP = F->getConstantPool(); unsigned constantHi = makeAnotherReg(Type::IntTy); unsigned TempF = makeAnotherReg(Type::DoubleTy); |