[PATCH] D19268: [DAGCombiner] Do not remove the load of stored values when optimizations are disabled
Marianne Mailhot-Sarrasin via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 20 06:23:13 PDT 2016
mamai retitled this revision from "[DAGCombiner] Skip folding constants when optimizations are disabled" to "[DAGCombiner] Do not remove the load of stored values when optimizations are disabled".
mamai updated this revision to Diff 54360.
Repository:
rL LLVM
http://reviews.llvm.org/D19268
Files:
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Index: lib/CodeGen/SelectionDAG/DAGCombiner.cpp
===================================================================
--- lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -9998,7 +9998,8 @@
// value.
// TODO: Handle store large -> read small portion.
// TODO: Handle TRUNCSTORE/LOADEXT
- if (ISD::isNormalLoad(N) && !LD->isVolatile()) {
+ if (OptLevel != CodeGenOpt::None &&
+ ISD::isNormalLoad(N) && !LD->isVolatile()) {
if (ISD::isNON_TRUNCStore(Chain.getNode())) {
StoreSDNode *PrevST = cast<StoreSDNode>(Chain);
if (PrevST->getBasePtr() == Ptr &&
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19268.54360.patch
Type: text/x-patch
Size: 623 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160420/112cdf1f/attachment.bin>
More information about the llvm-commits
mailing list