summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-10-10 18:54:19 +0000
committerChris Lattner <sabre@nondot.org>2006-10-10 18:54:19 +0000
commit8438429c96c3164a818221ee1e7998251a6f1a30 (patch)
treed817959929c5a0c6ba6005f8e7fadacad75eb164 /llvm/lib/CodeGen
parentd1a4ea41c9fb810eeb738f825570f9c01b9f3afb (diff)
downloadbcm5719-llvm-8438429c96c3164a818221ee1e7998251a6f1a30.tar.gz
bcm5719-llvm-8438429c96c3164a818221ee1e7998251a6f1a30.zip
Fix another bug in extload promotion.
llvm-svn: 30857
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index 699d5b1574b..d6b07a0f1b5 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -3237,7 +3237,8 @@ SDOperand SelectionDAGLegalize::PromoteOp(SDOperand Op) {
? ISD::EXTLOAD : LD->getExtensionType();
Result = DAG.getExtLoad(ExtType, NVT,
LD->getChain(), LD->getBasePtr(),
- LD->getSrcValue(), LD->getSrcValueOffset(), VT);
+ LD->getSrcValue(), LD->getSrcValueOffset(),
+ LD->getLoadVT());
// Remember that we legalized the chain.
AddLegalizedOperand(Op.getValue(1), LegalizeOp(Result.getValue(1)));
break;
OpenPOWER on IntegriCloud