[all-commits] [llvm/llvm-project] e63cc5: [MLIR][presburger] normalize divisionrepr

gilsaia via All-commits all-commits at lists.llvm.org
Thu Apr 27 01:43:36 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e63cc56d9d049edbc30528aba7e9dd918ab8f82d
      https://github.com/llvm/llvm-project/commit/e63cc56d9d049edbc30528aba7e9dd918ab8f82d
  Author: gilsaia <794433219 at qq.com>
  Date:   2023-04-27 (Thu, 27 Apr 2023)

  Changed paths:
    M mlir/include/mlir/Analysis/Presburger/Utils.h
    M mlir/lib/Analysis/Presburger/Utils.cpp
    M mlir/unittests/Analysis/Presburger/CMakeLists.txt
    A mlir/unittests/Analysis/Presburger/UtilsTest.cpp

  Log Message:
  -----------
  [MLIR][presburger] normalize divisionrepr

Added a simple normalize function to divisionrepr and added a simple unittest.
Added a normalizediv call to divisionrepr's removeDuplicateDivs function, which now eliminates divs that are consistent after gcd's normalize

Reviewed By: Groverkss

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




More information about the All-commits mailing list