From: Matt Wala Date: Sat, 13 Jun 2015 01:08:00 +0000 (+0000) Subject: Revert 239644. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8b8b72ef03c3c7f28ab9f38c462e95046e7a677a;p=oota-llvm.git Revert 239644. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239650 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/Scalarizer.cpp b/lib/Transforms/Scalar/Scalarizer.cpp index 7144fd39e3b..d55dc6a20a0 100644 --- a/lib/Transforms/Scalar/Scalarizer.cpp +++ b/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) {