[llvm] [InstCombine] Fold shift of boolean zext to logic sequence (PR #180596)

Gergo Stomfai via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 12 05:06:51 PST 2026


stomfaig wrote:

@nikic,

The rewrite you suggest does come with a lot of new test cases. In particular, the total test case space can be indexed with a cartesian product like

(select, zext, sext) x (select, zext, sext) x (supported binops) x (all icmp predicates)

Should I implement a test for all such cases (I can generate them using some script, that is not an issue, but there will be a lot)?

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


More information about the llvm-commits mailing list