[NFC][X86] combineX86ShuffleChain(): hoist Mask variable higher up
authorRoman Lebedev <lebedev.ri@gmail.com>
Thu, 5 Aug 2021 17:35:40 +0000 (20:35 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Thu, 5 Aug 2021 17:37:51 +0000 (20:37 +0300)
commitc0586ff05dd08e4cbfc6fb7881274d8d89913463
treec4961a3875b00af9589bbc9067b82c133bdf476a
parent16605aea844060c2973df079c9f91650132c099d
[NFC][X86] combineX86ShuffleChain(): hoist Mask variable higher up

Having `NewMask` outside of an if and rebinding `BaseMask` `ArrayRef`
to it is confusing. Instead, just move the `Mask` vector higher up,
and change the code that earlier had no access to it but now does
to use `Mask` instead of `BaseMask`.

This has no other intentional changes.

This is a recommit of 35c0848b570214ed2b2d96cca4dd62bb7ae725cd,
that was reverted to simplify reversion of an earlier change.
llvm/lib/Target/X86/X86ISelLowering.cpp