[PATCH] D130594: [RISCV] Inline ceil/floor/trunc for float and double

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 26 12:05:46 PDT 2022


craig.topper added a comment.

The code in libm is already special cased for RISC-V is optimal. It uses a range check and static rounding mode on the generated instructions. Other than removing the call overhead, the rest of this code is worse than what is in libm.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D130594/new/

https://reviews.llvm.org/D130594



More information about the llvm-commits mailing list