This is similar to the computeKnownBits improvement in rL268479. There's probably more to do for vector logic instructions, but this should let us see non-splat constant masking ops that can become vector selects instead of and/andn/or sequences.
Side note - I don't know how this line under the computeKnownBits() call in this patch could ever shift by any amount other than zero:
Mask <<= Mask.getBitWidth()-TyBits;
We can delete that unless I'm misunderstanding.