[all-commits] [llvm/llvm-project] 007177: [SLP]Fix PR61018: Assertion `Mask[I] == UndefMaskE...
Alexey Bataev via All-commits
all-commits at lists.llvm.org
Mon Feb 27 10:11:25 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 007177bdde60a822ccaefc96593e818c2235e2d5
https://github.com/llvm/llvm-project/commit/007177bdde60a822ccaefc96593e818c2235e2d5
Author: Alexey Bataev <a.bataev at outlook.com>
Date: 2023-02-27 (Mon, 27 Feb 2023)
Changed paths:
M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
A llvm/test/Transforms/SLPVectorizer/X86/insertelements-with-reused-indices.ll
Log Message:
-----------
[SLP]Fix PR61018: Assertion `Mask[I] == UndefMaskElem && "Multiple uses
of scalars."' failed.
Need to check for the reused indices when checking if 2 insertelement
instruction are from the same buildvector. If the inidices are reused,
better not to match buildvectors and consider them as differenet,
otherwise need to track the order of insertelement operations.
More information about the All-commits
mailing list