[all-commits] [llvm/llvm-project] dc3d1a: [SLP]Fix APInt assertion in emitReusedOps for narr...
Alexey Bataev via All-commits
all-commits at lists.llvm.org
Tue Sep 22 04:43:56 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: dc3d1a84aee26d1b23645f575d0e3e9130891a02
https://github.com/llvm/llvm-project/commit/dc3d1a84aee26d1b23645f575d0e3e9130891a02
Author: Alexey Bataev <a.bataev at outlook.com>
Date: 2026-09-22 (Tue, 22 Sep 2026)
Changed paths:
M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
A llvm/test/Transforms/SLPVectorizer/X86/reduction-same-vals-i1.ll
Log Message:
-----------
[SLP]Fix APInt assertion in emitReusedOps for narrow types
The repeat count of a reused scalar may not fit the reduction element
type (e.g. count 2 in i1), tripping the APInt isUIntN assertion when
building the to-mul scale constant. Truncate the count to the element
bitwidth; the modular reduction arithmetic keeps the result equivalent.
Fixes #225279
Reviewers:
Pull Request: https://github.com/llvm/llvm-project/pull/225376
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list