[InstCombine] use m_APInt to allow icmp-mul-mul vector fold
authorSanjay Patel <spatel@rotateright.com>
Wed, 24 May 2017 22:58:17 +0000 (22:58 +0000)
committerSanjay Patel <spatel@rotateright.com>
Wed, 24 May 2017 22:58:17 +0000 (22:58 +0000)
commit07b1ba54b5403617523b0501adc83c2b91d782ab
treeb41546dbcd8341ed0f94ad2f69452d0ec096d334
parent3c8f953f6193f9199a2b9b69834a4b3a2ad44701
[InstCombine] use m_APInt to allow icmp-mul-mul vector fold

The swapped operands in the first test is a manifestation of an
inefficiency for vectors that doesn't exist for scalars because
the IRBuilder checks for an all-ones mask for scalars, but not
vectors.

llvm-svn: 303818
llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
llvm/test/Transforms/InstCombine/icmp.ll