[all-commits] [llvm/llvm-project] b3a7ab: [DAG] Don't allow implicit truncation in extract_e...
Simon Pilgrim via All-commits
all-commits at lists.llvm.org
Mon Dec 30 08:26:29 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b3a7ab6f1f6954bfb1da0683aa5d03a2837c7065
https://github.com/llvm/llvm-project/commit/b3a7ab6f1f6954bfb1da0683aa5d03a2837c7065
Author: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: 2024-12-30 (Mon, 30 Dec 2024)
Changed paths:
M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
M llvm/test/CodeGen/PowerPC/scalar_vector_test_5.ll
Log Message:
-----------
[DAG] Don't allow implicit truncation in extract_element(bitcast(scalar_to_vector(X))) -> trunc(srl(X,C)) fold
Limits #117900 to only fold when scalar_to_vector doesn't perform implicit truncation, as the scaled shift calculation doesn't currently account for this - this can be addressed in a future update.
Fixes #121306
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