This is the simpler check. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@248625
91177308-0d34-0410-b5e6-
96231b3b80d8
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());
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