[all-commits] [llvm/llvm-project] 1f3a8d: [RISCV] Use ZERO_EXTEND instead of ANY_EXTEND when...
Craig Topper via All-commits
all-commits at lists.llvm.org
Thu Mar 10 21:02:19 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1f3a8d58a623a438044129e7c5203eaa826f3b7f
https://github.com/llvm/llvm-project/commit/1f3a8d58a623a438044129e7c5203eaa826f3b7f
Author: Craig Topper <craig.topper at sifive.com>
Date: 2022-03-10 (Thu, 10 Mar 2022)
Changed paths:
M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
Log Message:
-----------
[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.
More information about the All-commits
mailing list