[llvm] [InstCombine] fold sub (and (add x, pow2), ~pow2), x -> and x, pow2 (PR #230796)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 10 09:27:03 PDT 2026


nikic wrote:

> Proof: https://alive2.llvm.org/ce/z/DXHtNs

The power of two check compares C1 instead of ctpop, so it only shows the C1 == 1 case :) Still verified with that fixed though...

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


More information about the llvm-commits mailing list