[all-commits] [llvm/llvm-project] 1a8c61: [mlir][arith] Align shift Ops with LLVM instructio...

Felix Schneider via All-commits all-commits at lists.llvm.org
Sun Feb 18 01:17:14 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1a8c6130f60fe517fb722ab4309997ce7b638234
      https://github.com/llvm/llvm-project/commit/1a8c6130f60fe517fb722ab4309997ce7b638234
  Author: Felix Schneider <fx.schn at gmail.com>
  Date:   2024-02-18 (Sun, 18 Feb 2024)

  Changed paths:
    M mlir/include/mlir/Dialect/Arith/IR/ArithOps.td
    M mlir/lib/Dialect/Arith/IR/ArithOps.cpp
    M mlir/test/Dialect/Arith/canonicalize.mlir

  Log Message:
  -----------
  [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



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