[all-commits] [llvm/llvm-project] 69effe: [SLP]Check for potential safety of the truncation ...
Alexey Bataev via All-commits
all-commits at lists.llvm.org
Thu Feb 27 08:42:14 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 69effe054c136defda8766688ac0de4626a0eb05
https://github.com/llvm/llvm-project/commit/69effe054c136defda8766688ac0de4626a0eb05
Author: Alexey Bataev <a.bataev at outlook.com>
Date: 2025-02-27 (Thu, 27 Feb 2025)
Changed paths:
M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
M llvm/test/Transforms/SLPVectorizer/X86/ext-used-scalar-different-bitwidth.ll
Log Message:
-----------
[SLP]Check for potential safety of the truncation for vectorized scalars with multi uses
If the vectorized scalars has multiple uses, need to check if it is safe
to truncate the vectorized value, before actually trying doing it.
Otherwise, the compiler may loose some important bits, which may lead to
a miscompilation.
Fixes #129057
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