summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerguei Katkov <serguei.katkov@azul.com>2017-11-08 05:02:51 +0000
committerSerguei Katkov <serguei.katkov@azul.com>2017-11-08 05:02:51 +0000
commit2c8a33ad124d3e7163e5bd96ed145f9571a4d944 (patch)
tree6a1a89f38d8d5df4dc54c90de9193c23b88e9ad9
parentd550a31777f44b3b259157b0e822eb98dfd6daba (diff)
downloadllvm-2c8a33ad124d3e7163e5bd96ed145f9571a4d944.tar.gz
[CGP] Enable extending scope of optimizeMemoryInst
This patch enables the folding of address computation in memory instruction in case adress is represented by Phi node. The inputs of Phi node might be different in base register. Differential Revision: https://reviews.llvm.org/D36073 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@317665 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/CodeGenPrepare.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGenPrepare.cpp b/lib/CodeGen/CodeGenPrepare.cpp
index d6633a508f5d..635036a3f921 100644
--- a/lib/CodeGen/CodeGenPrepare.cpp
+++ b/lib/CodeGen/CodeGenPrepare.cpp
@@ -190,7 +190,7 @@ EnableTypePromotionMerge("cgp-type-promotion-merge", cl::Hidden,
" the other."), cl::init(true));
static cl::opt<bool> DisableComplexAddrModes(
- "disable-complex-addr-modes", cl::Hidden, cl::init(true),
+ "disable-complex-addr-modes", cl::Hidden, cl::init(false),
cl::desc("Disables combining addressing modes with different parts "
"in optimizeMemoryInst."));