aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/ModuloSchedule.cpp
diff options
context:
space:
mode:
authorYingwei Zheng <dtcxzyw2333@gmail.com>2024-04-24 17:01:49 +0800
committerGitHub <noreply@github.com>2024-04-24 17:01:49 +0800
commit945eeb2d92758ef907ef3aeb3251fadc64b731b3 (patch)
tree032b8ed4744a15b2c6738b975e31a3acb9d6cdc5 /llvm/lib/CodeGen/ModuloSchedule.cpp
parentd149370900844cca3fec06bb078eb8d85008f72d (diff)
downloadllvm-945eeb2d92758ef907ef3aeb3251fadc64b731b3.zip
llvm-945eeb2d92758ef907ef3aeb3251fadc64b731b3.tar.gz
llvm-945eeb2d92758ef907ef3aeb3251fadc64b731b3.tar.bz2
[InstCombine] Simplify `(X / C0) * C1 + (X % C0) * C2` to `(X / C0) * (C1 - C2 * C0) + X * C2` (#76285)
Since `DivRemPairPass` runs after `ReassociatePass` in the optimization pipeline, I decided to do this simplification in `InstCombine`. Alive2: https://alive2.llvm.org/ce/z/Jgsiqf Fixes #76128.
Diffstat (limited to 'llvm/lib/CodeGen/ModuloSchedule.cpp')
0 files changed, 0 insertions, 0 deletions