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

via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 16 09:11:10 PST 2023


elhewaty wrote:

> 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

Can you explain further please, I think I don't understand the code very well.



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


More information about the llvm-commits mailing list