[PATCH] D133891: [SLP]Improve isUndefVector function by adding insertelement analysis.

Steven Johnson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 20 13:39:17 PDT 2022


srj added a comment.

The line numbers in the ASAN trace are slightly different from this patch, but the culprit seems to be:

  SmallVector<int> InsertMask(NumElts, UndefMaskElem);
  copy(Mask, std::next(InsertMask.begin(), OffsetBeg));    <-- THIS LINE

Not sure about the semantics here, but presumably InsertMask doesn't have the capacity for the copy and gets tromped on...


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D133891



More information about the llvm-commits mailing list