[MLIR] Add division normalization by GCD in `getDivRepr` fn.
authorPrashant Kumar <pk5561@gmail.com>
Thu, 6 Jan 2022 10:42:41 +0000 (16:12 +0530)
committerGroverkss <groverkss@gmail.com>
Thu, 6 Jan 2022 10:48:50 +0000 (16:18 +0530)
commitdf29318e667c718859947569c0eda9563ab13bc1
tree5e9c3babb88dd729cec6521630980f7c8308bfa1
parent0fa174398bfd7040128340bae03228838ee6082e
[MLIR] Add division normalization by GCD in `getDivRepr` fn.

This commits adds division normalization in  the `getDivRepr` function which extracts
 the gcd from the dividend and divisor and normalizes them.

Signed-off-by: Prashant Kumar <pk5561@gmail.com>
Reviewed By: bondhugula

Differential Revision: https://reviews.llvm.org/D115595
mlir/lib/Analysis/Presburger/Utils.cpp
mlir/unittests/Analysis/AffineStructuresTest.cpp