forked from OSchip/llvm-project
DAGCombiner: Check if store is volatile first
This is the simpler check. NFC. llvm-svn: 248625
This commit is contained in:
parent
c804cdb912
commit
3c07e963b8
|
@ -14519,6 +14519,9 @@ bool DAGCombiner::findBetterNeighborChains(StoreSDNode* St) {
|
|||
if (Index != St && !SDValue(Index, 0)->hasOneUse())
|
||||
break;
|
||||
|
||||
if (Index->isVolatile() || Index->isIndexed())
|
||||
break;
|
||||
|
||||
// Find the base pointer and offset for this memory node.
|
||||
BaseIndexOffset Ptr = BaseIndexOffset::match(Index->getBasePtr());
|
||||
|
||||
|
@ -14526,9 +14529,6 @@ bool DAGCombiner::findBetterNeighborChains(StoreSDNode* St) {
|
|||
if (!Ptr.equalBaseIndex(BasePtr))
|
||||
break;
|
||||
|
||||
if (Index->isVolatile() || Index->isIndexed())
|
||||
break;
|
||||
|
||||
// Find the next memory operand in the chain. If the next operand in the
|
||||
// chain is a store then move up and continue the scan with the next
|
||||
// memory operand. If the next operand is a load save it and use alias
|
||||
|
|
Loading…
Reference in New Issue