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
This commit is contained in:
parent
813a0b1d29
commit
d9834b29dd
|
@ -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
|
// If they are asking for an extending load from/to the same thing, return a
|
||||||
// normal load.
|
// normal load.
|
||||||
if (VT == EVT)
|
if (VT == EVT)
|
||||||
ExtType = ISD::NON_EXTLOAD;
|
return getLoad(VT, Chain, Ptr, SV, SVOffset, isVolatile, Alignment);
|
||||||
|
|
||||||
if (MVT::isVector(VT))
|
if (MVT::isVector(VT))
|
||||||
assert(EVT == MVT::getVectorElementType(VT) && "Invalid vector extload!");
|
assert(EVT == MVT::getVectorElementType(VT) && "Invalid vector extload!");
|
||||||
|
|
Loading…
Reference in New Issue