diff options
author | Nate Begeman <natebegeman@mac.com> | 2005-12-10 02:36:00 +0000 |
---|---|---|
committer | Nate Begeman <natebegeman@mac.com> | 2005-12-10 02:36:00 +0000 |
commit | 4e56db674ccb175168dfaaede0e52a8de632455c (patch) | |
tree | 08e71dcaa8308a707037ef548872943e86d04dfa /llvm/lib/CodeGen | |
parent | 3c5198336c4e07d9d9e1f8f26b698487fb04e6e0 (diff) | |
download | bcm5719-llvm-4e56db674ccb175168dfaaede0e52a8de632455c.tar.gz bcm5719-llvm-4e56db674ccb175168dfaaede0e52a8de632455c.zip |
Add support for TargetConstantPool nodes to the dag isel emitter, and use
them in the PPC backend, to simplify some logic out of Select and
SelectAddr.
llvm-svn: 24657
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index c66748729db..620b6439c68 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -532,6 +532,7 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) { case ISD::TargetFrameIndex: case ISD::Register: case ISD::TargetConstant: + case ISD::TargetConstantPool: case ISD::GlobalAddress: case ISD::TargetGlobalAddress: case ISD::ExternalSymbol: @@ -679,7 +680,8 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) { Extend = true; } - SDOperand CPIdx = DAG.getConstantPool(LLVMC, TLI.getPointerTy()); + SDOperand CPIdx = + LegalizeOp(DAG.getConstantPool(LLVMC, TLI.getPointerTy())); if (Extend) { Result = DAG.getExtLoad(ISD::EXTLOAD, MVT::f64, DAG.getEntryNode(), CPIdx, DAG.getSrcValue(NULL), MVT::f32); |