[InstCombine] Fold ((C1 OP zext(X)) & C2) -> zext((C1 OP X) & C2)

This further extends r292179 to support additional binary operators
beyond subtraction.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292238 91177308-0d34-0410-b5e6-96231b3b80d8
2 files changed