[RISCV] Use ZERO_EXTEND instead of ANY_EXTEND when promoting i32 RISCVISD::SHFL. NFC
authorCraig Topper <craig.topper@sifive.com>
Fri, 11 Mar 2022 04:03:23 +0000 (20:03 -0800)
committerCraig Topper <craig.topper@sifive.com>
Fri, 11 Mar 2022 04:57:04 +0000 (20:57 -0800)
commit1f3a8d58a623a438044129e7c5203eaa826f3b7f
tree62a76a31b53d73f02f1b1ac6ce6b2ac3659533bc
parent097035f308d1cdc00d71d3d216564fddffda0be7
[RISCV] Use ZERO_EXTEND instead of ANY_EXTEND when promoting i32 RISCVISD::SHFL. NFC

We know the shift amount is a constant with bit 31 clear. anyext
of constant will be either zext or sext which will produce the
same result here. But we really shouldn't rely on that. It would
be valid to put a random number in the upper bits. Our isel patterns
expect the upper bits to be 0 so we should ask for it explicitly.
llvm/lib/Target/RISCV/RISCVISelLowering.cpp