diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2015-09-25 22:06:19 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2015-09-25 22:06:19 +0000 |
commit | 3c07e963b803641ca530df985c1ec66beae10d32 (patch) | |
tree | e9a0c4d310ee1c6caeccd3a3995d2d4e4ede0f95 /llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | |
parent | c804cdb912aba6158c613a530346e8ef50d99b8c (diff) | |
download | bcm5719-llvm-3c07e963b803641ca530df985c1ec66beae10d32.tar.gz bcm5719-llvm-3c07e963b803641ca530df985c1ec66beae10d32.zip |
DAGCombiner: Check if store is volatile first
This is the simpler check. NFC.
llvm-svn: 248625
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 01ca2884d03..f94f506156c 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -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 |