diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-11-25 05:02:20 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-11-25 05:02:20 +0000 |
commit | e1679735d6df98bd71808f3c34a32599de0f40a1 (patch) | |
tree | 359550a452de65864e3d75d459b586ec2174dd2a /lib | |
parent | d49c8fca79093f3eaaae3ee03ada65ef258f80b8 (diff) | |
download | external_llvm-e1679735d6df98bd71808f3c34a32599de0f40a1.zip external_llvm-e1679735d6df98bd71808f3c34a32599de0f40a1.tar.gz external_llvm-e1679735d6df98bd71808f3c34a32599de0f40a1.tar.bz2 |
Merging r195599:
------------------------------------------------------------------------
r195599 | void | 2013-11-24 21:01:21 -0800 (Sun, 24 Nov 2013) | 4 lines
Don't look past volatile loads.
A volatile load should block us from trying to coalesce stores.
PR18023
------------------------------------------------------------------------
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_34@195600 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 20b0981..e0732fa 100644 --- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -8703,6 +8703,11 @@ bool DAGCombiner::MergeConsecutiveStores(StoreSDNode* St) { Index = STn; break; } else if (LoadSDNode *Ldn = dyn_cast<LoadSDNode>(NextInChain)) { + if (Ldn->isVolatile()) { + Index = NULL; + break; + } + // Save the load node for later. Continue the scan. AliasLoadNodes.push_back(Ldn); NextInChain = Ldn->getChain().getNode(); |