[all-commits] [llvm/llvm-project] ed3982: Model UB in integer division operations in the ari...

Sanjoy Das via All-commits all-commits at lists.llvm.org
Fri Nov 11 10:49:25 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ed39825be48805b174d3177f1d8d41ed84784d18
      https://github.com/llvm/llvm-project/commit/ed39825be48805b174d3177f1d8d41ed84784d18
  Author: Sanjoy Das <sanjoy.das at getcruise.com>
  Date:   2022-11-11 (Fri, 11 Nov 2022)

  Changed paths:
    M mlir/include/mlir/Dialect/Arith/IR/ArithOps.td
    M mlir/lib/Dialect/Arith/IR/ArithOps.cpp
    M mlir/test/Transforms/loop-invariant-code-motion.mlir

  Log Message:
  -----------
  Model UB in integer division operations in the arith dialect

Before this commit `arith.{ceil}div{u|s}i` were marked `Pure` which is
incorrect because these operations invoke UB on certain inputs.

Fixes: https://github.com/llvm/llvm-project/issues/58700

Reviewed By: kuhar

Differential Revision: https://reviews.llvm.org/D137814




More information about the All-commits mailing list