[llvm] r317665 - [CGP] Enable extending scope of optimizeMemoryInst
Serguei Katkov via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 7 21:02:51 PST 2017
Author: skatkov
Date: Tue Nov 7 21:02:51 2017
New Revision: 317665
URL: http://llvm.org/viewvc/llvm-project?rev=317665&view=rev
Log:
[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
Modified:
llvm/trunk/lib/CodeGen/CodeGenPrepare.cpp
Modified: llvm/trunk/lib/CodeGen/CodeGenPrepare.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/CodeGenPrepare.cpp?rev=317665&r1=317664&r2=317665&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/CodeGenPrepare.cpp (original)
+++ llvm/trunk/lib/CodeGen/CodeGenPrepare.cpp Tue Nov 7 21:02:51 2017
@@ -190,7 +190,7 @@ EnableTypePromotionMerge("cgp-type-promo
" 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."));
More information about the llvm-commits
mailing list