llvm-project
7730245b - [CodeGenPrepare][AMDGPU] Fold urem by constant of loop increment (#242110)

Commit
1 day ago
[CodeGenPrepare][AMDGPU] Fold urem by constant of loop increment (#242110) Extend foldURemOfLoopIncrement to constant remainder amounts. For constant divisors also allow a constant step smaller than the divisor, 'or disjoint' offsets, and a non-simplifiable start value (the initial remainder is computed in the preheader). Power-of-2 divisors and urems that do not execute on every iteration are skipped. Co-authored-by: claude Opus5.5
Author
Parents
Loading