[InstCombine] use 'match' to reduce code; NFCI
authorSanjay Patel <spatel@rotateright.com>
Sat, 22 Apr 2017 18:05:35 +0000 (18:05 +0000)
committerSanjay Patel <spatel@rotateright.com>
Sat, 22 Apr 2017 18:05:35 +0000 (18:05 +0000)
commit3b863f8a1ec82f4dd4dfcbc5d24b2da83ff516f3
treea3e9531918f1e579c36a4e0316009cd2016a4bae
parentfc32c3a2c55f3494bd7b9194634797df72c3e162
[InstCombine] use 'match' to reduce code; NFCI

The later uses of dyn_castNotVal in this block are either
incomplete (doesn't handle vector constants) or overstepping
(shouldn't handle constants at all), but this first use is
just unnecessary. 'I' is obviously not a constant, and it
can't be a not-of-a-not because that would already be
instsimplified.

llvm-svn: 301088
llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp