[all-commits] [llvm/llvm-project] 076759: Revert "[RISCV] Implement support for bf16 truncat...
Alex Bradbury via All-commits
all-commits at lists.llvm.org
Fri Jun 23 17:23:44 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 076759f068c8b505cd171c6f3cd45112ef580101
https://github.com/llvm/llvm-project/commit/076759f068c8b505cd171c6f3cd45112ef580101
Author: Craig Topper <craig.topper at sifive.com>
Date: 2023-06-23 (Fri, 23 Jun 2023)
Changed paths:
M llvm/lib/Support/RISCVISAInfo.cpp
M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
M llvm/test/CodeGen/RISCV/bfloat.ll
Log Message:
-----------
Revert "[RISCV] Implement support for bf16 truncate/extend on hard FP targets"
This was committed with D153598 merged into it. Reverting to recommit as separate patches.
This reverts commit 690b1c847f0b188202a86dc25a0a76fd8c4618f4.
Commit: f2d16b368fcde4cc7e67fe50316eb070d82487f9
https://github.com/llvm/llvm-project/commit/f2d16b368fcde4cc7e67fe50316eb070d82487f9
Author: Craig Topper <craig.topper at sifive.com>
Date: 2023-06-23 (Fri, 23 Jun 2023)
Changed paths:
M llvm/lib/Support/RISCVISAInfo.cpp
Log Message:
-----------
[RISCV] Use binary search on the extension tables in RISCVISAInfo.cpp. NFC
After D153170 the tables are now sorted by extension name so we can use that to
avoid a linear search.
Reviewed By: asb, MaskRay
Differential Revision: https://reviews.llvm.org/D153598
Commit: 929124993a587a0e30690700f1dfd7e125c7d77a
https://github.com/llvm/llvm-project/commit/929124993a587a0e30690700f1dfd7e125c7d77a
Author: Alex Bradbury <asb at igalia.com>
Date: 2023-06-23 (Fri, 23 Jun 2023)
Changed paths:
M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
M llvm/test/CodeGen/RISCV/bfloat.ll
Log Message:
-----------
Recommit "[RISCV] Implement support for bf16 truncate/extend on hard FP targets"
Without the changes from D153598.
Original commit message:
For the same reasons as D151284, this requires custom lowering of the
truncate libcall on hard float ABIs (the normal libcall code path is
used on soft ABIs).
The extend operation is implemented by a shift just as in the standard
legalisation, but needs to be custom lowered because i32 isn't a legal
type on RV64.
This patch aims to make the minimal changes that result in correct
codegen for the bfloat.ll tests.
Differential Revision: https://reviews.llvm.org/D151663
Compare: https://github.com/llvm/llvm-project/compare/bef4007a421a...929124993a58
More information about the All-commits
mailing list