[llvm] [InstCombine] Fold shift of boolean zext to logic sequence (PR #180596)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 13 05:59:56 PST 2026
================
----------------
nikic wrote:
It looks like all tests here but one already fold without this patch: https://llvm.godbolt.org/z/8TM343d44
It's expected that some of them already fold (e.g. the ones using add or two selects), but for others this is in part up to the specific choice of values. Probably the combination of a zext/select and a non-trivial select is least likely to be convered by an existing fold.
https://github.com/llvm/llvm-project/pull/180596
More information about the llvm-commits
mailing list