diff options
author | Craig Topper <craig.topper@sifive.com> | 2024-09-06 15:50:29 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-06 15:50:29 -0700 |
commit | 49660e5565a3b4f1ec29d6c95b6d6576d398eaf1 (patch) | |
tree | def22bdcc8b1834d2a664ee1439b389442d086fc /llvm/lib/IR/ModuleSummaryIndex.cpp | |
parent | 9700ca0a3067ced47de956b2c79781320cf7e708 (diff) | |
download | llvm-49660e5565a3b4f1ec29d6c95b6d6576d398eaf1.zip llvm-49660e5565a3b4f1ec29d6c95b6d6576d398eaf1.tar.gz llvm-49660e5565a3b4f1ec29d6c95b6d6576d398eaf1.tar.bz2 |
[RISCV] Pass f32/f64 directly without a bitcast for Zfinx/Zdinx. (#107464)
With Zfinx/Zdinx, f32/f64 are legal types for a GPR, we don't need a
bitcast.
This avoids turning fneg/fabs into bitwise operations purely because of
these bitcasts. If the bitwise operations are faster for some reason on
a Zfinx CPU, then that seems like it should be done for all fneg/fabs,
not just ones near function arguments/returns.
I don't have much interest in Zfinx, this just makes the code more
similar to what I proposed for Zhinx in #107446.
Diffstat (limited to 'llvm/lib/IR/ModuleSummaryIndex.cpp')
0 files changed, 0 insertions, 0 deletions