summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorEvgeny Stupachenko <evstupac@gmail.com>2017-06-06 20:04:16 +0000
committerEvgeny Stupachenko <evstupac@gmail.com>2017-06-06 20:04:16 +0000
commit3b88291581c1d79aeb0b2aca8f55dfc4b4c7460c (patch)
tree2a2e957278f1712ac3c8a18358d2f8adeb8956e0 /llvm/lib/Transforms
parent4d4cd8bb97a252dabe5734e97e0337d408f6649a (diff)
downloadbcm5719-llvm-3b88291581c1d79aeb0b2aca8f55dfc4b4c7460c.tar.gz
bcm5719-llvm-3b88291581c1d79aeb0b2aca8f55dfc4b4c7460c.zip
Fix PR23384 (part 3 of 3)
Summary: The patch makes instruction count the highest priority for LSR solution for X86 (previously registers had highest priority). Reviewers: qcolombet Differential Revision: http://reviews.llvm.org/D30562 From: Evgeny Stupachenko <evstupac@gmail.com> llvm-svn: 304824
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
index 73436f13c94..b027278b24f 100644
--- a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
@@ -131,7 +131,7 @@ static cl::opt<bool> EnablePhiElim(
// The flag adds instruction count to solutions cost comparision.
static cl::opt<bool> InsnsCost(
- "lsr-insns-cost", cl::Hidden, cl::init(false),
+ "lsr-insns-cost", cl::Hidden, cl::init(true),
cl::desc("Add instruction count to a LSR cost model"));
// Flag to choose how to narrow complex lsr solution
OpenPOWER on IntegriCloud