llvm-project
1a8c6130 - [mlir][arith] Align shift Ops with LLVM instructions on allowed shift amounts (#82133)

Commit
1 year ago
[mlir][arith] Align shift Ops with LLVM instructions on allowed shift amounts (#82133) This patch aligns the shift Ops in `arith` with respective LLVM instructions. Specifically, shifting by an amount equal to the bitwidth of the operand is now defined to return poison. Relevant discussion: https://discourse.llvm.org/t/some-question-on-the-semantics-of-the-arith-dialect/74861/10 Relevant issue: https://github.com/llvm/llvm-project/issues/80960
Author
Parents
Loading