Revert 239644.
authorMatt Wala <wala@google.com>
Sat, 13 Jun 2015 01:08:00 +0000 (01:08 +0000)
committerMatt Wala <wala@google.com>
Sat, 13 Jun 2015 01:08:00 +0000 (01:08 +0000)
llvm-svn: 239650

llvm/lib/Transforms/Scalar/Scalarizer.cpp

index 7144fd3..d55dc6a 100644 (file)
@@ -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) {