[PATCH] D98423: Fix the trunc instruction insertion problem in SLP pass

Anton Afanasyev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Mar 13 21:15:16 PST 2021


anton-afanasyev added inline comments.


================
Comment at: llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp:4915
+      // last phi node.
+      if (dyn_cast<PHINode>(I))
+        Builder.SetInsertPoint(&*I->getParent()->getFirstInsertionPt());
----------------
isa<PHINode>(I)


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D98423/new/

https://reviews.llvm.org/D98423



More information about the llvm-commits mailing list