Skip to content

Commit efcf75a

Browse files
Update DAGCombiner.cpp
1 parent 0898e47 commit efcf75a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22524,7 +22524,7 @@ static SDValue foldToMaskedStore(StoreSDNode *Store, SelectionDAG &DAG,
2252422524
}
2252522525

2252622526
auto *Load = cast<LoadSDNode>(StoredVal.getOperand(LoadPos));
22527-
if (!Load->isSimple() || Load->getExtensionType() != ISD::NON_EXTLOAD)
22527+
if (!Load->isSimple() || !ISD::isNormalLoad(Load))
2252822528
return SDValue();
2252922529

2253022530
if (!Store->getChain().reachesChainWithoutSideEffects(LoadCh))

0 commit comments

Comments
 (0)