[InstCombine] allow matching vector types for icmp-of-mask/cast
authorSanjay Patel <spatel@rotateright.com>
Mon, 23 Jan 2023 22:58:10 +0000 (17:58 -0500)
committerSanjay Patel <spatel@rotateright.com>
Mon, 23 Jan 2023 23:23:43 +0000 (18:23 -0500)
commit82dcfe0dbbfac68056c6cb9c1ba5222ff836317c
treee4c6360f153d9d3630139049fd0683e6ebb59225
parent7a9e3ad070653544536a3be5fe18104bc305014f
[InstCombine] allow matching vector types for icmp-of-mask/cast

Also use a more specific matcher to simplify the mask
compare to type size.
llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
llvm/test/Transforms/InstCombine/icmp.ll