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
2.1 KiB
2.1 KiB