summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2019-03-23 12:11:25 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2019-03-23 12:11:25 +0000
commitf4f01f3cffde43af9539212158a5a9fd5a34ded5 (patch)
tree733aacc4037e7dffeb63facde9a9c90ce4057c4b /llvm/lib
parentb2c4b8bded3ff2efaaebe0d8b33c65116f9ef8de (diff)
downloadbcm5719-llvm-f4f01f3cffde43af9539212158a5a9fd5a34ded5.tar.gz
bcm5719-llvm-f4f01f3cffde43af9539212158a5a9fd5a34ded5.zip
[SLPVectorizer] Don't repeat VL.size() call. NFCI.
llvm-svn: 356830
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
index 1e1f45a4ec0..8865dc4dc0b 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -2809,7 +2809,7 @@ void BoUpSLP::reorderAltShuffleOperands(const InstructionsState &S,
// Reorder if we have a commutative operation and consecutive access
// are on either side of the alternate instructions.
- for (unsigned j = 0; j < VL.size() - 1; ++j) {
+ for (unsigned j = 0, e = VL.size() - 1; j < e; ++j) {
if (LoadInst *L = dyn_cast<LoadInst>(Left[j])) {
if (LoadInst *L1 = dyn_cast<LoadInst>(Right[j + 1])) {
Instruction *VL1 = cast<Instruction>(VL[j]);
OpenPOWER on IntegriCloud