summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorMatthew Simpson <mssimpso@codeaurora.org>2017-05-16 15:50:30 +0000
committerMatthew Simpson <mssimpso@codeaurora.org>2017-05-16 15:50:30 +0000
commitaf60af1ed5d8160f42bc4aa7a107a543c3736c31 (patch)
tree95edfb13a8aa8bac1822288382fc391d802734fa /llvm/lib/Transforms
parentcfd357a61a96b83356db0b5b3021ce60eaf1f1cb (diff)
downloadbcm5719-llvm-af60af1ed5d8160f42bc4aa7a107a543c3736c31.tar.gz
bcm5719-llvm-af60af1ed5d8160f42bc4aa7a107a543c3736c31.zip
Revert 303174, 303176, and 303178
These commits are breaking the bots. Reverting to investigate. llvm-svn: 303182
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Vectorize/LoopVectorize.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index f18ff8f991f..516ab7d03a8 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -6550,8 +6550,8 @@ unsigned LoopVectorizationCostModel::selectInterleaveCount(bool OptForSize,
// We assume that the cost overhead is 1 and we use the cost model
// to estimate the cost of the loop and interleave until the cost of the
// loop overhead is about 5% of the cost of the loop.
- unsigned SmallIC = std::min(
- IC, (unsigned)PowerOf2Floor(SmallLoopCost / LoopCost ? LoopCost : 1));
+ unsigned SmallIC =
+ std::min(IC, (unsigned)PowerOf2Floor(SmallLoopCost / LoopCost));
// Interleave until store/load ports (estimated by max interleave count) are
// saturated.
OpenPOWER on IntegriCloud