[all-commits] [llvm/llvm-project] 014912: [MLIR][Presburger] Fix reduce bug in Fraction clas...

Abhinav271828 via All-commits all-commits at lists.llvm.org
Fri Oct 6 09:17:54 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 014912a7fe51f1e9fbf6d677c56dfb43899e5393
      https://github.com/llvm/llvm-project/commit/014912a7fe51f1e9fbf6d677c56dfb43899e5393
  Author: Abhinav271828 <71174780+Abhinav271828 at users.noreply.github.com>
  Date:   2023-10-06 (Fri, 06 Oct 2023)

  Changed paths:
    M mlir/include/mlir/Analysis/Presburger/Fraction.h
    M mlir/unittests/Analysis/Presburger/CMakeLists.txt
    A mlir/unittests/Analysis/Presburger/FractionTest.cpp

  Log Message:
  -----------
  [MLIR][Presburger] Fix reduce bug in Fraction class and add tests (#68298)

Modified `Fraction.reduce()` to work with negative fractions as well.
Added tests to verify the implementation of arithmetic and relational
operators on Fractions.




More information about the All-commits mailing list