diff options
author | Craig Topper <craig.topper@sifive.com> | 2022-03-10 20:03:23 -0800 |
---|---|---|
committer | Craig Topper <craig.topper@sifive.com> | 2022-03-10 20:57:04 -0800 |
commit | 1f3a8d58a623a438044129e7c5203eaa826f3b7f (patch) | |
tree | 62a76a31b53d73f02f1b1ac6ce6b2ac3659533bc /llvm/unittests/Support/CommandLineTest.cpp | |
parent | 097035f308d1cdc00d71d3d216564fddffda0be7 (diff) | |
download | llvm-1f3a8d58a623a438044129e7c5203eaa826f3b7f.zip llvm-1f3a8d58a623a438044129e7c5203eaa826f3b7f.tar.gz llvm-1f3a8d58a623a438044129e7c5203eaa826f3b7f.tar.bz2 |
[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.
Diffstat (limited to 'llvm/unittests/Support/CommandLineTest.cpp')
0 files changed, 0 insertions, 0 deletions