Skip to content

Commit 2c8a33a

Browse files
author
Serguei Katkov
committed
[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
1 parent d550a31 commit 2c8a33a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/CodeGen/CodeGenPrepare.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ EnableTypePromotionMerge("cgp-type-promotion-merge", cl::Hidden,
190190
" the other."), cl::init(true));
191191

192192
static cl::opt<bool> DisableComplexAddrModes(
193-
"disable-complex-addr-modes", cl::Hidden, cl::init(true),
193+
"disable-complex-addr-modes", cl::Hidden, cl::init(false),
194194
cl::desc("Disables combining addressing modes with different parts "
195195
"in optimizeMemoryInst."));
196196

0 commit comments

Comments
 (0)