[llvm-branch-commits] [llvm-branch] r195600 - Merging r195599:
Bill Wendling
isanbard at gmail.com
Sun Nov 24 21:02:20 PST 2013
Author: void
Date: Sun Nov 24 23:02:20 2013
New Revision: 195600
URL: http://llvm.org/viewvc/llvm-project?rev=195600&view=rev
Log:
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
------------------------------------------------------------------------
Added:
llvm/branches/release_34/test/CodeGen/X86/pr18023.ll
- copied unchanged from r195599, llvm/trunk/test/CodeGen/X86/pr18023.ll
Modified:
llvm/branches/release_34/ (props changed)
llvm/branches/release_34/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Propchange: llvm/branches/release_34/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Sun Nov 24 23:02:20 2013
@@ -1,3 +1,3 @@
/llvm/branches/Apple/Pertwee:110850,110961
/llvm/branches/type-system-rewrite:133420-134817
-/llvm/trunk:155241,195092-195094,195100,195102-195103,195118,195129,195138,195152,195156-195157,195161-195162,195193,195272,195317-195318,195333,195339,195355,195397-195399,195421,195423,195439,195567
+/llvm/trunk:155241,195092-195094,195100,195102-195103,195118,195129,195138,195152,195156-195157,195161-195162,195193,195272,195317-195318,195333,195339,195355,195397-195399,195421,195423,195439,195567,195599
Modified: llvm/branches/release_34/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/release_34/lib/CodeGen/SelectionDAG/DAGCombiner.cpp?rev=195600&r1=195599&r2=195600&view=diff
==============================================================================
--- llvm/branches/release_34/lib/CodeGen/SelectionDAG/DAGCombiner.cpp (original)
+++ llvm/branches/release_34/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Sun Nov 24 23:02:20 2013
@@ -8703,6 +8703,11 @@ bool DAGCombiner::MergeConsecutiveStores
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();
More information about the llvm-branch-commits
mailing list