[llvm] [InstCombine] fold `gepi _, (srem x, y)` to `gepi _, (urem x, y)` if `y` is power-of-2 (PR #180148)
Yingwei Zheng via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 9 06:26:08 PST 2026
https://github.com/dtcxzyw approved this pull request.
Looks like we can always convert `srem x, pow2` to urem if we can prove the result is non-negative: https://alive2.llvm.org/ce/z/JfcRWE There's nothing special about gep.
https://github.com/llvm/llvm-project/pull/180148
More information about the llvm-commits
mailing list