Skip to content
Commit ec7b0d4d authored by Arnab Dutta's avatar Arnab Dutta Committed by Uday Bondhugula
Browse files

[MLIR] Simplify Semi-affine expressions by rule based matching and replacing...

[MLIR] Simplify Semi-affine expressions by rule based matching and replacing "expr - q * (expr floordiv q)" with  "expr mod q" expression.

Add rule based matching for detecting and transforming "expr - q * (expr floordiv q)"
to "expr mod q", where q is a symbolic exxpression, in simplifyAdd function.

Reviewed By: bondhugula, dcaballe

Differential Revision: https://reviews.llvm.org/D112985
parent fbfe8fcb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment