diff options
author | Paul Robinson <paul_robinson@playstation.sony.com> | 2015-02-26 18:47:57 +0000 |
---|---|---|
committer | Paul Robinson <paul_robinson@playstation.sony.com> | 2015-02-26 18:47:57 +0000 |
commit | 093d6e1a70d551c053b3e65f535d279919652c2a (patch) | |
tree | ada867b8a459f945195174bc4ac43f5ce61bd377 /llvm/lib/CodeGen/SelectionDAG | |
parent | f00d7721247524828ddeb2be9a1962e10bae3670 (diff) | |
download | bcm5719-llvm-093d6e1a70d551c053b3e65f535d279919652c2a.tar.gz bcm5719-llvm-093d6e1a70d551c053b3e65f535d279919652c2a.zip |
When the source has a series of assignments, users reasonably want to
have the debugger step through each one individually. Turn off the
combine for adjacent stores at -O0 so we get this behavior.
Possibly, DAGCombine shouldn't run at all at -O0, but that's for
another day; see PR22346.
Differential Revision: http://reviews.llvm.org/D7181
llvm-svn: 230659
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 0437f59b4fe..6129401765c 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -10055,6 +10055,9 @@ bool DAGCombiner::MergeStoresOfConstantsOrVecElts( } bool DAGCombiner::MergeConsecutiveStores(StoreSDNode* St) { + if (OptLevel == CodeGenOpt::None) + return false; + EVT MemVT = St->getMemoryVT(); int64_t ElementSizeBytes = MemVT.getSizeInBits()/8; bool NoVectors = DAG.getMachineFunction().getFunction()->hasFnAttribute( |