From bfb5368cc7504728b73374e5c204dd957a652325 Mon Sep 17 00:00:00 2001 From: Matt Wala Date: Sat, 13 Jun 2015 01:08:00 +0000 Subject: Revert 239644. llvm-svn: 239650 --- llvm/lib/Transforms/Scalar/Scalarizer.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'llvm/lib/Transforms/Scalar/Scalarizer.cpp') diff --git a/llvm/lib/Transforms/Scalar/Scalarizer.cpp b/llvm/lib/Transforms/Scalar/Scalarizer.cpp index 7144fd39e3b..d55dc6a20a0 100644 --- a/llvm/lib/Transforms/Scalar/Scalarizer.cpp +++ b/llvm/lib/Transforms/Scalar/Scalarizer.cpp @@ -636,9 +636,7 @@ bool Scalarizer::visitStoreInst(StoreInst &SI) { // Delete the instructions that we scalarized. If a full vector result // is still needed, recreate it using InsertElements. bool Scalarizer::finish() { - // The presence of data in Gathered or Scattered indicates changes - // made to the Function. - if (Gathered.empty() && Scattered.empty()) + if (Gathered.empty()) return false; for (GatherList::iterator GMI = Gathered.begin(), GME = Gathered.end(); GMI != GME; ++GMI) { -- cgit v1.2.3