diff options
author | Serguei Katkov <serguei.katkov@azul.com> | 2017-11-08 05:02:51 +0000 |
---|---|---|
committer | Serguei Katkov <serguei.katkov@azul.com> | 2017-11-08 05:02:51 +0000 |
commit | 2c8a33ad124d3e7163e5bd96ed145f9571a4d944 (patch) | |
tree | 6a1a89f38d8d5df4dc54c90de9193c23b88e9ad9 | |
parent | d550a31777f44b3b259157b0e822eb98dfd6daba (diff) | |
download | llvm-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.cpp | 2 |
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.")); |