diff options
author | Serguei Katkov <serguei.katkov@azul.com> | 2017-11-07 09:43:08 +0000 |
---|---|---|
committer | Serguei Katkov <serguei.katkov@azul.com> | 2017-11-07 09:43:08 +0000 |
commit | 365200295a949d1bad08d4031e176a7929004713 (patch) | |
tree | a5051165a4f4675d7348825b3f373cd9f8f77be6 /llvm/lib/CodeGen/CodeGenPrepare.cpp | |
parent | 7411da557f72bd59a4e61a5454230ef0ffd7a1f9 (diff) | |
download | bcm5719-llvm-365200295a949d1bad08d4031e176a7929004713.tar.gz bcm5719-llvm-365200295a949d1bad08d4031e176a7929004713.zip |
[CGP] Disable Select instruction handling in optimizeMemoryInst. NFC
This patch disables the handling of selects in optimization
extensing scope of optimizeMemoryInst.
The optimization itself is disable by default.
The idea here is just to switch optimiztion level step by step.
Specifically, first optimization will be enabled only for Phi nodes,
then select instructions will be added.
In case someone will complain about perfromance it will be easier to
detect what part of optimizations is responsible for that.
Differential Revision: https://reviews.llvm.org/D36073
llvm-svn: 317555
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenPrepare.cpp')
-rw-r--r-- | llvm/lib/CodeGen/CodeGenPrepare.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp index 2a678291c42..5b48f5f4d1e 100644 --- a/llvm/lib/CodeGen/CodeGenPrepare.cpp +++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp @@ -199,7 +199,7 @@ AddrSinkNewPhis("addr-sink-new-phis", cl::Hidden, cl::init(false), cl::desc("Allow creation of Phis in Address sinking.")); static cl::opt<bool> -AddrSinkNewSelects("addr-sink-new-select", cl::Hidden, cl::init(true), +AddrSinkNewSelects("addr-sink-new-select", cl::Hidden, cl::init(false), cl::desc("Allow creation of selects in Address sinking.")); namespace { |