[X86] isRepeatedTargetShuffleMask - don't require specific MVT type. NFC.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 16 Aug 2020 10:51:44 +0000 (11:51 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 16 Aug 2020 10:51:44 +0000 (11:51 +0100)
commitc27baa54b78478ace01cd81abbdbbf47e3f8c54a
tree05c18f2c12bb0e880b285f4921dc95b9dbdece42
parent402b063c80674aef9c4eb5997f1054dac0fca073
[X86] isRepeatedTargetShuffleMask - don't require specific MVT type. NFC.

Split the isRepeatedTargetShuffleMask into a wrapper variant that takes a MVT describing the mask width, and an internal version that just needs the raw mask element bit size.

This will be necessary for an upcoming change where the horizontal ops element width might not match the shuffle mask element width.
llvm/lib/Target/X86/X86ISelLowering.cpp