[llvm] Patch tryCanonicalizeStructToVector to handle split slice tails (PR #201434)
Yaxun Liu via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 8 07:03:24 PDT 2026
================
@@ -5131,20 +5131,27 @@ static FixedVectorType *tryCanonicalizeStructToVector(StructType *STy,
if (StructSize != VectorSize)
return nullptr;
- for (const Slice &S : P) {
+ auto IsMemIntrinsicOnlySlice = [](const Slice &S) {
----------------
yxsamliu wrote:
This helper also accepts dead/no-use slices plus lifetime/debug intrinsics, not only MemIntrinsic users. Maybe name it something like `IsAllowedStructToVectorSlice` or `IsIgnorableOrMemIntrinsicSlice` to make the policy clearer.
https://github.com/llvm/llvm-project/pull/201434
More information about the llvm-commits
mailing list