From ffe5008fd3013451fd3cfe8dd878c9a1d4abad21 Mon Sep 17 00:00:00 2001 From: Jakub Staszak Date: Sun, 21 Oct 2012 15:36:03 +0000 Subject: [PATCH] Simplify code. No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166393 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Vectorize/LoopVectorize.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Transforms/Vectorize/LoopVectorize.cpp b/lib/Transforms/Vectorize/LoopVectorize.cpp index 7efb003b276..dfa29093e68 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.