[LoongArch] Fold selects sharing operands with binary operations (#215520)
Fold selects of the form
select C, (binop X, Y), X
into
binop X, (select C, Y, 0)
Support ADD, OR, XOR, and eligible SUB patterns while preserving the
operand-order restrictions of SUB.