Consider the following pattern:
%binop_ = binop %x, %y %select_ = select %c, %binop_, %x
If there is an identity %identity operand for binop, it is possible to transform
the above code to:
%opearand = select %c, %y, %identity %result = binop %x, %operand
This transformation is profitable when %identity is all zeroes or
ones.
This patch commits a test for such patterns.
This is a test for https://reviews.llvm.org/D155344