Simplify code. No functionality change.
[oota-llvm.git] / lib / Transforms / Vectorize / LoopVectorize.cpp
index 7efb003b2760377e10b5e3da61ec60a39eab4c77..dfa29093e68cf3ed8dd8dce8aa2e1f0082ed85b4 100644 (file)
@@ -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.