llvm-project
4baf29e8 - [DAG] Handle cases where a shift amount is larger than the pre-extended value bitwidth

Commit
1 year ago
[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
Author
Committer
Parents
Loading