diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2006-09-12 21:04:05 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2006-09-12 21:04:05 +0000 |
| commit | 9a083a4121e026f917b0ccc8aaccdcc3543e14c8 (patch) | |
| tree | 28b6a09b7b1cbde3389768d65e0a6f7275822145 /llvm/lib/Target/PowerPC/PPCISelLowering.cpp | |
| parent | 45fe3bc72cbbfdca3ee2a8bf649982871b0bcba4 (diff) | |
| download | bcm5719-llvm-9a083a4121e026f917b0ccc8aaccdcc3543e14c8.tar.gz bcm5719-llvm-9a083a4121e026f917b0ccc8aaccdcc3543e14c8.zip | |
Reflects MachineConstantPoolEntry changes.
llvm-svn: 30279
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCISelLowering.cpp')
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCISelLowering.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp index 31e209adf41..db33f5f38e9 100644 --- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp @@ -314,7 +314,7 @@ static bool isFloatingPointZero(SDOperand Op) { else if (Op.getOpcode() == ISD::EXTLOAD || Op.getOpcode() == ISD::LOAD) { // Maybe this has already been legalized into the constant pool? if (ConstantPoolSDNode *CP = dyn_cast<ConstantPoolSDNode>(Op.getOperand(1))) - if (ConstantFP *CFP = dyn_cast<ConstantFP>(CP->get())) + if (ConstantFP *CFP = dyn_cast<ConstantFP>(CP->getConstVal())) return CFP->isExactlyValue(-0.0) || CFP->isExactlyValue(0.0); } return false; @@ -601,7 +601,7 @@ SDOperand PPC::get_VSPLTI_elt(SDNode *N, unsigned ByteSize, SelectionDAG &DAG) { static SDOperand LowerConstantPool(SDOperand Op, SelectionDAG &DAG) { MVT::ValueType PtrVT = Op.getValueType(); ConstantPoolSDNode *CP = cast<ConstantPoolSDNode>(Op); - Constant *C = CP->get(); + Constant *C = CP->getConstVal(); SDOperand CPI = DAG.getTargetConstantPool(C, PtrVT, CP->getAlignment()); SDOperand Zero = DAG.getConstant(0, PtrVT); |

