[llvm] [SLP][REVEC] Fix insertelement legality checks (PR #146921)

Han-Kuan Chen via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 4 01:51:48 PDT 2025


HanKuanChen wrote:

No. As you said, SLP assumes that VL consists of InsertElement and comes from the same source. In addition, `getElementIndex` is widely used to vectorize InsertElement, but it does not support PoisonValue.

https://github.com/llvm/llvm-project/pull/146921


More information about the llvm-commits mailing list