summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2007-10-19 13:05:40 +0000
committerDuncan Sands <baldrick@free.fr>2007-10-19 13:05:40 +0000
commitd9834b29dd7672bfc410bc9b0cafcccf631e3bfa (patch)
tree5e02e47773eef73bbb8384ed6a04567c117cd467 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
parent813a0b1d290fa510e9e50b9ecef337bc74ae6c9e (diff)
downloadbcm5719-llvm-d9834b29dd7672bfc410bc9b0cafcccf631e3bfa.tar.gz
bcm5719-llvm-d9834b29dd7672bfc410bc9b0cafcccf631e3bfa.zip
If the value types are equal then this routine
asserts in later checks rather than producing the ordinary load it is supposed to. Avoid all such hassles by directly returning an ordinary load in this case. llvm-svn: 43174
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 09e8b579a0f..5b7f1b6e3b8 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -2340,7 +2340,7 @@ SDOperand SelectionDAG::getExtLoad(ISD::LoadExtType ExtType, MVT::ValueType VT,
// If they are asking for an extending load from/to the same thing, return a
// normal load.
if (VT == EVT)
- ExtType = ISD::NON_EXTLOAD;
+ return getLoad(VT, Chain, Ptr, SV, SVOffset, isVolatile, Alignment);
if (MVT::isVector(VT))
assert(EVT == MVT::getVectorElementType(VT) && "Invalid vector extload!");
OpenPOWER on IntegriCloud