forked from OSchip/llvm-project
AArch64: compare correct type for multi-valued SDNode.
If Orig produces more than one value (rare) with different types (rarer) then we need to make sure we check against the one that Orig actually represents, not just the first type. Unfortunately because of the combination of things that need to happen I wasn't able to produce a test.
This commit is contained in:
parent
29ff2e879f
commit
8eb054a87d
|
@ -15378,7 +15378,7 @@ static SDValue foldTruncStoreOfExt(SelectionDAG &DAG, SDNode *N) {
|
|||
ExtOpCode != ISD::ANY_EXTEND)
|
||||
return SDValue();
|
||||
SDValue Orig = Ext->getOperand(0);
|
||||
if (Store->getMemoryVT() != Orig->getValueType(0))
|
||||
if (Store->getMemoryVT() != Orig.getValueType())
|
||||
return SDValue();
|
||||
return DAG.getStore(Store->getChain(), SDLoc(Store), Orig,
|
||||
Store->getBasePtr(), Store->getPointerInfo(),
|
||||
|
|
Loading…
Reference in New Issue