Files
clang-p2996/llvm/test/Transforms/PhaseOrdering/pr62311.ll
Shivam Gupta 46aba711ab [InstCombine] (icmp eq A, -1) & (icmp eq B, -1) --> (icmp eq (A&B), -1)
This patch add another icmp fold for -1 case.

This fixes https://github.com/llvm/llvm-project/issues/62311,
where we want instcombine to merge all compare intructions together so
later passes like simplifycfg and slpvectorize can better optimize this
chained comparison.

Reviewed By: goldstein.w.n

Differential Revision: https://reviews.llvm.org/D151660
2023-06-08 09:00:05 +05:30

2.1 KiB