[all-commits] [llvm/llvm-project] ff9306: [mlir][Interfaces] ValueBoundsOpInterface: Check i...

Matthias Springer via All-commits all-commits at lists.llvm.org
Thu May 25 10:09:06 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ff9306459ff2f09b18ccbd4b5cefaf833730f42d
      https://github.com/llvm/llvm-project/commit/ff9306459ff2f09b18ccbd4b5cefaf833730f42d
  Author: Matthias Springer <me at m-sp.org>
  Date:   2023-05-25 (Thu, 25 May 2023)

  Changed paths:
    M mlir/include/mlir/Interfaces/ValueBoundsOpInterface.h
    M mlir/lib/Interfaces/ValueBoundsOpInterface.cpp
    M mlir/test/Dialect/Tensor/value-bounds-op-interface-impl.mlir
    M mlir/test/lib/Dialect/Affine/TestReifyValueBounds.cpp

  Log Message:
  -----------
  [mlir][Interfaces] ValueBoundsOpInterface: Check if two values are equal

Add a helper function that computes if two SSA values have the same value, utilizing the `ValueBoundsOpInterface` infrastructure. Two SSA values have the same value, an equality bound of 0 can be derived for their subtraction.

The helper function can also be used to determine if two tensor dimension sizes are equal.

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




More information about the All-commits mailing list