[InstCombine] Clean up one-hot merge optimization (NFC)
authorNikita Popov <nikita.ppv@gmail.com>
Tue, 11 May 2021 20:51:16 +0000 (22:51 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Tue, 11 May 2021 21:22:11 +0000 (23:22 +0200)
commit15565403722ec37d8b1a3ee8625ee2e8efcd96ee
tree2bc43fe13bb3d3ebae88cf9d266906e615d5003a
parent764ad3b3fafbf57ca916715625fffb7df5dbeb92
[InstCombine] Clean up one-hot merge optimization (NFC)

Remove the requirement that the instruction is a BinaryOperator,
make the predicate check more compact and use slightly more
meaningful naming for the and operands.
llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
llvm/lib/Transforms/InstCombine/InstCombineInternal.h