[llvm] r239650 - Revert 239644.

Matt Wala wala at google.com
Fri Jun 12 18:08:00 PDT 2015


Author: wala
Date: Fri Jun 12 20:08:00 2015
New Revision: 239650

URL: http://llvm.org/viewvc/llvm-project?rev=239650&view=rev
Log:
Revert 239644.

Modified:
    llvm/trunk/lib/Transforms/Scalar/Scalarizer.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/Scalarizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/Scalarizer.cpp?rev=239650&r1=239649&r2=239650&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/Scalarizer.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/Scalarizer.cpp Fri Jun 12 20:08:00 2015
@@ -636,9 +636,7 @@ bool Scalarizer::visitStoreInst(StoreIns
 // 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) {





More information about the llvm-commits mailing list