[InstCombine] reduce code for flip of masked bit; NFC
authorSanjay Patel <spatel@rotateright.com>
Sun, 15 Nov 2020 20:43:34 +0000 (15:43 -0500)
committerSanjay Patel <spatel@rotateright.com>
Sun, 15 Nov 2020 20:43:34 +0000 (15:43 -0500)
commit6ddc2377669243e93c1d6fa931f3eaef370e55e0
tree124acf35aa48ff977051b241c6bff0cd060810ad
parente56103d25016c9ce4e98f652ac1a09379793ccf5
[InstCombine] reduce code for flip of masked bit; NFC

There are 1-2 potential follow-up NFC commits to reduce
this further on the way to generalizing this for vectors.

The operand replacing path should be dead code because demanded
bits handles that more generally (D91415).
llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
llvm/lib/Transforms/InstCombine/InstCombineInternal.h
llvm/test/Transforms/InstCombine/add.ll
llvm/test/Transforms/InstCombine/and.ll