]> granicus.if.org Git - llvm/commit
[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)
commit56bf04cfa414e0153bb770bf09332848a41345f0
tree3dfc3f64bdd3d3dadebb638bb8c9106f76f35f8c
parentbb7651ba9917424cf73fde0a6972161d9221edf1
[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.

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