[InstCombine]: foldSelectICmpAndAnd(): and is commutative
The fold added in D45108 did not account for the fact that
the and instruction is commutative, and if the mask is a variable,
the mask variable and the fold variable may be swapped.
I have noticed this by accident when looking into PR6773
This extends/generalizes that fold, so it is handled too.
Reviewers: spatel, craig.topper
Reviewed By: spatel
Differential Revision: https://reviews.llvm.org/D45539