[llvm] r248625 - DAGCombiner: Check if store is volatile first
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 25 15:06:19 PDT 2015
Author: arsenm
Date: Fri Sep 25 17:06:19 2015
New Revision: 248625
URL: http://llvm.org/viewvc/llvm-project?rev=248625&view=rev
Log:
DAGCombiner: Check if store is volatile first
This is the simpler check. NFC.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp?rev=248625&r1=248624&r2=248625&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Fri Sep 25 17:06:19 2015
@@ -14519,6 +14519,9 @@ bool DAGCombiner::findBetterNeighborChai
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::findBetterNeighborChai
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
More information about the llvm-commits
mailing list