[all-commits] [llvm/llvm-project] 8c4937: [RISCV] Special case sign extended scalars when ty...
Craig Topper via All-commits
all-commits at lists.llvm.org
Mon Mar 21 14:54:49 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8c4937b33fe9090546f6dc834e174177075b5084
https://github.com/llvm/llvm-project/commit/8c4937b33fe9090546f6dc834e174177075b5084
Author: Craig Topper <craig.topper at sifive.com>
Date: 2022-03-21 (Mon, 21 Mar 2022)
Changed paths:
M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
M llvm/test/CodeGen/RISCV/rvv/vadd.ll
Log Message:
-----------
[RISCV] Special case sign extended scalars when type legalizing nxvXi64 .vx instrinsics on RV32.
On RV32, we need to type legalize i64 scalar arguments to intrinsics.
We usually do this by splatting the value into a vector separately.
If the scalar happens to be sign extended, we can continue using a .vx
intrinsic.
We already special cased sign extended constants, this extends it
to any sign extended value.
I've only added tests for one case of vadd. Most intrinsics go
through the same check. I can add more tests if we're concerned.
Differential Revision: https://reviews.llvm.org/D122186
Commit: 19de2e8db611b8a2348586899b0a823e51423e82
https://github.com/llvm/llvm-project/commit/19de2e8db611b8a2348586899b0a823e51423e82
Author: Craig Topper <craig.topper at sifive.com>
Date: 2022-03-21 (Mon, 21 Mar 2022)
Changed paths:
M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
Log Message:
-----------
[RISCV] Remove stray slash from comment. NFC
Commit: d4aeb5000ff49933be64a7c5423e8760b70d4cbd
https://github.com/llvm/llvm-project/commit/d4aeb5000ff49933be64a7c5423e8760b70d4cbd
Author: Craig Topper <craig.topper at sifive.com>
Date: 2022-03-21 (Mon, 21 Mar 2022)
Changed paths:
M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
Log Message:
-----------
[RISCV] Simplify some code. NFC
Compare: https://github.com/llvm/llvm-project/compare/b40f420c2b64...d4aeb5000ff4
More information about the All-commits
mailing list