[clang] [llvm] [InstCombine] Generalizing icmp eq/ne X, 0/1 to trunc X to i1 IIF X in range (0,2] (PR #184182)

Nikita Popov via cfe-commits cfe-commits at lists.llvm.org
Sat Oct 10 00:48:50 PDT 2026


nikic wrote:

> but a question for @dtcxzyw and @nikic I assume that we can not solve all regressions so when is it good enough?

I guess basically when there are more improvements than regressions, and the known regressions can't be easily fixed?

I briefly scrolled through the llvm-opt-benchmark results, and I think there are still some "simple" regressions there. For example there's this missed optimization: https://alive2.llvm.org/ce/z/kWLxGe

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


More information about the cfe-commits mailing list