[llvm] [SLP]Look through truncation of shifted extracted sub-fields (PR #226803)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 27 09:05:51 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-vectorizers
@llvm/pr-subscribers-llvm-transforms
Author: Alexey Bataev (alexey-bataev)
<details>
<summary>Changes</summary>
The masked sub-field of the shifted truncation of a wider scalar was
matched with the truncation as its source, while the other fields
matched the scalar itself, so the gather of the fields was rejected.
The field is within the truncated bits, look through the truncation.
Fixes #<!-- -->74380
---
Full diff: https://github.com/llvm/llvm-project/pull/226803.diff
2 Files Affected:
- (modified) llvm/lib/Transforms/Vectorize/SLPVectorizer/SLPUtils.cpp (+4-1)
- (modified) llvm/test/Transforms/SLPVectorizer/X86/extracted-subfields-shifted-trunc.ll (+2-12)
``````````diff
The server is unavailable at this time. Please wait a few minutes before you try again.
``````````
</details>
https://github.com/llvm/llvm-project/pull/226803
More information about the llvm-commits
mailing list