[all-commits] [llvm/llvm-project] b6098c: [MLIR] Fix negative gcd in `normalizeDivisionByGCD...

Prashant Kumar via All-commits all-commits at lists.llvm.org
Fri Jan 21 23:39:43 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b6098c07cb2076e53b4251df9edfc0a01d75ee4c
      https://github.com/llvm/llvm-project/commit/b6098c07cb2076e53b4251df9edfc0a01d75ee4c
  Author: Prashant Kumar <pk5561 at gmail.com>
  Date:   2022-01-22 (Sat, 22 Jan 2022)

  Changed paths:
    M mlir/lib/Analysis/Presburger/Utils.cpp
    M mlir/unittests/Analysis/Presburger/IntegerPolyhedronTest.cpp

  Log Message:
  -----------
  [MLIR] Fix negative gcd in `normalizeDivisionByGCD` function.

When the coefficients of dividend are negative, the gcd may be negative
which will change the sign of dividend and overflow denominator.

Reviewed By: Groverkss

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




More information about the All-commits mailing list