From 2a1f755c06eab1b0f859dceffaea5226ce4b3e17 Mon Sep 17 00:00:00 2001 From: Sanjay Patel Date: Sun, 5 Jul 2015 21:21:47 +0000 Subject: [PATCH] remove unnecessary temp variable; NFCI git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241415 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Vectorize/SLPVectorizer.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/Transforms/Vectorize/SLPVectorizer.cpp b/lib/Transforms/Vectorize/SLPVectorizer.cpp index d3f1a2d8939..da35b35248f 100644 --- a/lib/Transforms/Vectorize/SLPVectorizer.cpp +++ b/lib/Transforms/Vectorize/SLPVectorizer.cpp @@ -3276,12 +3276,11 @@ bool SLPVectorizer::vectorizeStores(ArrayRef Stores, I = ConsecutiveChain[I]; } - bool Vectorized = vectorizeStoreChain(Operands, costThreshold, R); - - // Mark the vectorized stores so that we don't vectorize them again. - if (Vectorized) + if (vectorizeStoreChain(Operands, costThreshold, R)) { + // Mark the vectorized stores so that we don't vectorize them again. VectorizedStores.insert(Operands.begin(), Operands.end()); - Changed |= Vectorized; + Changed = true; + } } return Changed; -- 2.34.1