[llvm] [InstCombine] Use known bits to simplify mask in foldSelectICmpAnd (PR #128741)

Julian Nagele via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 7 10:31:17 PST 2025


juliannagele wrote:

Thanks! Here's a generalized version `assume`-ing that the rhs and bitmask are powers of 2 https://alive2.llvm.org/ce/z/RszbRS

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


More information about the llvm-commits mailing list