Files
clang-p2996/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
Nikita Popov dc2b2ae7dc [InstCombine] Fold cttz of lowest set bit
cttz(-a & a) is the same as cttz(a). -a & a is an idiom to extract
the lowest set bit, which naturally does not affect the number of
trailing zeroes.

Proof: https://alive2.llvm.org/ce/z/Yp26x7
2023-07-14 14:31:35 +02:00

157 KiB