[PATCH] D111596: [SelectionDAG] Bail out of mergeTruncStores when not optimizing
Arthur Eubanks via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 20 16:58:47 PDT 2021
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG6ea7437ca5a4: [SelectionDAG] Bail out of mergeTruncStores when not optimizing (authored by aeubanks).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D111596/new/
https://reviews.llvm.org/D111596
Files:
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Index: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
===================================================================
--- llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -7315,7 +7315,7 @@
// TODO: If there is evidence that running this later would help, this
// limitation could be removed. Legality checks may need to be added
// for the created store and optional bswap/rotate.
- if (LegalOperations)
+ if (LegalOperations || OptLevel == CodeGenOpt::None)
return SDValue();
// We only handle merging simple stores of 1-4 bytes.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111596.381116.patch
Type: text/x-patch
Size: 618 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211020/4c0c37a6/attachment.bin>
More information about the llvm-commits
mailing list