[PATCH] D75670: [FPEnv] Intrinsic llvm.roundeven

Serge Pavlov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 21 05:54:38 PDT 2020


sepavloff added a comment.

Replacement of `llvm.nearbyint` and `llvm.rint` with `llvm.roundeven` in the case of default FP environment is an optimization. If it is not done, these intrinsics will be converted into runtime library calls and the semantics expected by user will not be broken. While `pragma STDC FENV_ACCESS` is not fully supported, compiler should not do such optimization, because it would made functions `nearbyint*` and `rint*` unavailable.

This patch only introduces new intrinsic function that will be used to implement functions `roundeven*` defined in new C standard.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D75670





More information about the llvm-commits mailing list