]> granicus.if.org Git - llvm/commitdiff
[SLPVectorizer] Replace E->Scalars to VL0 at vectorizeTree and move comment, NFCI.
authorDinar Temirbulatov <dtemirbulatov@gmail.com>
Fri, 21 Jul 2017 16:02:56 +0000 (16:02 +0000)
committerDinar Temirbulatov <dtemirbulatov@gmail.com>
Fri, 21 Jul 2017 16:02:56 +0000 (16:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@308750 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Vectorize/SLPVectorizer.cpp

index 21e9b986908d602ce259c716b493efe37cf6a3ed..3e6f84ae7e0e749bb1d0811638d0a56cef7b9977 100644 (file)
@@ -2746,7 +2746,7 @@ Value *BoUpSLP::vectorizeTree(TreeEntry *E) {
     }
     case Instruction::Call: {
       CallInst *CI = cast<CallInst>(VL0);
-      setInsertPointAfterBundle(E->Scalars);
+      setInsertPointAfterBundle(VL0);
       Function *FI;
       Intrinsic::ID IID  = Intrinsic::not_intrinsic;
       Value *ScalarArg = nullptr;
@@ -2986,9 +2986,8 @@ BoUpSLP::vectorizeTree(ExtraValueToDebugLocsMap &ExternallyUsedValues) {
         for (User *U : Scalar->users()) {
           DEBUG(dbgs() << "SLP: \tvalidating user:" << *U << ".\n");
 
-          assert((getTreeEntry(U) ||
-                  // It is legal to replace users in the ignorelist by undef.
-                  is_contained(UserIgnoreList, U)) &&
+          // It is legal to replace users in the ignorelist by undef.
+          assert((getTreeEntry(U) || is_contained(UserIgnoreList, U)) &&
                  "Replacing out-of-tree value with undef");
         }
 #endif