[RISCV] Add an early out to lowerVECTOR_SHUFFLEAsVSlidedown. NFC
authorCraig Topper <craig.topper@sifive.com>
Wed, 19 Oct 2022 04:11:42 +0000 (21:11 -0700)
committerCraig Topper <craig.topper@sifive.com>
Wed, 19 Oct 2022 04:35:15 +0000 (21:35 -0700)
commit7a4e56acac4fa398880411282f6280d61533204b
tree461ab63ddcf990970e2afd04809179e8f9f31ae1
parent28d70d3f1e2ad2497c90ce024548f7f211feb72f
[RISCV] Add an early out to lowerVECTOR_SHUFFLEAsVSlidedown. NFC

If Mask[0] is 0, then we're never going to match a slidedown. If
we get through the for loop, then it's an identity mask which should
have already been optimized out. Otherwise it's some non-contiguous
mask that will fail out of the lop. Might as well not bother entering
the loop.
llvm/lib/Target/RISCV/RISCVISelLowering.cpp