[InstCombine] visitAnd - use m_SpecificInt instead of m_APInt + comparison. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 17 Nov 2020 17:22:36 +0000 (17:22 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 17 Nov 2020 17:37:10 +0000 (17:37 +0000)
commitabf29d9862d898c02f3df95cbdc4e9bdba396b6f
tree7c31640ffa21d83f0b4cc4c6cd4b50b97bdbfce0
parent3b4f9c16bf24dce2fe3f859a8a04304e76dace8b
[InstCombine] visitAnd - use m_SpecificInt instead of m_APInt + comparison. NFCI.

m_SpecificInt has the same 'no undef element' behaviour as m_APInt so no change there, and anyway we have test coverage for undef elements in the fold.

Noticed while fixing a Wshadow warning about shadow Value *X, *Y variables.
llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp