OSDN Git Service

[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)
commitd47a423c5e01a7f6d95f274e0fc7d2c6dab1b778
tree0f44ed397836a77c40f32dbb870afcef095fcec2
parent7941a5200699e9f4f6e5d15f3ccdd8354fc41598
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@303818 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCompares.cpp
test/Transforms/InstCombine/icmp.ll