[llvm] [SLP]Fix narrowed leaf masks for demoted reduction root (PR #227009)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 28 07:52:00 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-llvm-transforms
Author: Alexey Bataev (alexey-bataev)
<details>
<summary>Changes</summary>
The root of the narrowed-leaf reduction may be demoted and resized to the
reduction bitwidth of the wide reduction operations, while the masks are
built for the narrow leaves type, causes the crash.
Fixes https://github.com/llvm/llvm-project/pull/224919#issuecomment-5869787812
---
Full diff: https://github.com/llvm/llvm-project/pull/227009.diff
2 Files Affected:
- (modified) llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp (+9-1)
- (added) llvm/test/Transforms/SLPVectorizer/X86/narrowed-reduction-minbw-root.ll (+60)
``````````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/227009
More information about the llvm-commits
mailing list