summaryrefslogtreecommitdiff
path: root/lib/Transforms/Vectorize
diff options
context:
space:
mode:
authorJakub Staszak <kubastaszak@gmail.com>2012-10-21 15:36:03 +0000
committerJakub Staszak <kubastaszak@gmail.com>2012-10-21 15:36:03 +0000
commitffe5008fd3013451fd3cfe8dd878c9a1d4abad21 (patch)
treedd651d3cde679d6b48c6bec281c4159f019a8558 /lib/Transforms/Vectorize
parentb75209cb66ab5d7a155af3cffe0e552e69820e2c (diff)
downloadllvm-ffe5008fd3013451fd3cfe8dd878c9a1d4abad21.tar.gz
llvm-ffe5008fd3013451fd3cfe8dd878c9a1d4abad21.tar.bz2
llvm-ffe5008fd3013451fd3cfe8dd878c9a1d4abad21.tar.xz
Simplify code. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166393 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Vectorize')
-rw-r--r--lib/Transforms/Vectorize/LoopVectorize.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Vectorize/LoopVectorize.cpp b/lib/Transforms/Vectorize/LoopVectorize.cpp
index 7efb003b27..dfa29093e6 100644
--- a/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -1230,7 +1230,7 @@ bool LoopVectorizationLegality::AddReductionVar(PHINode *Phi,
// If the instruction has no users then this is a broken
// chain and can't be a reduction variable.
- if (Iter->use_begin() == Iter->use_end())
+ if (Iter->use_empty())
return false;
// For each of the *users* of iter.