OSDN Git Service

[InstCombine] use constant pattern matchers with icmp+sext
authorSanjay Patel <spatel@rotateright.com>
Thu, 21 Jun 2018 17:51:44 +0000 (17:51 +0000)
committerSanjay Patel <spatel@rotateright.com>
Thu, 21 Jun 2018 17:51:44 +0000 (17:51 +0000)
commit83601e52b862d262ebaca2aaf6111bc4ed1544ca
tree5094b98dc704c22ea66ac03224f385f832d2cde5
parent7cf22ab2fa636acc34035ba9dda0d24e1ae6e9b7
[InstCombine] use constant pattern matchers with icmp+sext

The previous code worked with vectors, but it failed when the
vector constants contained undef elements.
The matchers handle those cases.

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