[all-commits] [llvm/llvm-project] 4baf29: [DAG] Handle cases where a shift amount is larger ...
Simon Pilgrim via All-commits
all-commits at lists.llvm.org
Tue Aug 27 10:15:42 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4baf29e81e30e6ebc1da56b9e5c338014961acf9
https://github.com/llvm/llvm-project/commit/4baf29e81e30e6ebc1da56b9e5c338014961acf9
Author: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: 2024-08-27 (Tue, 27 Aug 2024)
Changed paths:
M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
A llvm/test/CodeGen/SystemZ/pr106202.ll
Log Message:
-----------
[DAG] Handle cases where a shift amount is larger than the pre-extended value bitwidth
In the (zext (shl (zext x), cst)) -> (shl (zext x), cst) fold, don't use a bitmask / MaskedValueIsZero as we can't guarantee that the shift amount is in bounds.
Fixes #106202
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