[PATCH] D144292: [SLP] Fix infinite loop in isUndefVector.

Alexey Bataev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 17 12:48:06 PST 2023


ABataev added inline comments.


================
Comment at: llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp:379
+          return Res.reset();
         Base = II->getOperand(0);
         std::optional<unsigned> Idx = getInsertIndex(II);
----------------
Move `Base = II->getOperand(0);` before the if statement instead, it is not an error path


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D144292



More information about the llvm-commits mailing list