heir icon indicating copy to clipboard operation
heir copied to clipboard

arith_ext: add transforms for arith.remui patterns

Open inbelic opened this issue 1 year ago • 1 comments

  • We can reduce runtime computation by avoiding computing remui and instead use a Barrett reduction or SubIfGE operation when possible

Resolve #710

inbelic avatar May 31 '24 22:05 inbelic

Note to self: currently does not have any check if the operands are actually in the range [0, cmod)

inbelic avatar May 31 '24 23:05 inbelic