andjo403 wrote: thanks for the explanation. I also tested this after the fold `icmp ne (and X, 1), 0 --> trunc X to i1` and also did not get any diff for llvm-opt-benchmark so seems like it make no change. https://github.com/llvm/llvm-project/pull/135055