[llvm] Fold (a % b) lt/ge (b-1) where b is a power of 2 (PR #72504)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 16 04:05:16 PST 2023


https://github.com/nikic commented:

Please provide alive2 links with symbolic constants, not specific ones.

As far as I can tell, this transform doesn't actually require a power of two? We only need to be careful about the sign. https://alive2.llvm.org/ce/z/AJq3Ch

https://github.com/llvm/llvm-project/pull/72504


More information about the llvm-commits mailing list