OSDN Git Service

[InstCombine] use more specific pattern matchers; NFCI
authorSanjay Patel <spatel@rotateright.com>
Wed, 6 Jul 2016 21:01:26 +0000 (21:01 +0000)
committerSanjay Patel <spatel@rotateright.com>
Wed, 6 Jul 2016 21:01:26 +0000 (21:01 +0000)
commitd6ed0ff57aa2851559a231e35869523a205c1819
tree6ecc95aa321efaea9c50d2b7d0f1982ff4838830
parenta5ef55b509bd4bf3b4503d7eb1cda88de7f820c8
[InstCombine] use more specific pattern matchers; NFCI

Follow-up from r274465: we don't need to capture the value in these cases,
so just match the constant that we're looking for. m_One/m_Zero work with
vector splats as well as scalars.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@274670 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineSelect.cpp