[PATCH] D28335: [WIP] [RFC] Don't lower floating point intrinsics to libcalls which modify errno

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 4 12:43:54 PDT 2017


arsenm added a comment.

In https://reviews.llvm.org/D28335#832364, @efriedma wrote:

> I haven't really been looking at this lately.
>
> The only angle that isn't mentioned here is that it might make sense to get rid of some of these intrinsics.  llvm.sin(), llvm.cos(), and llvm.pow() are lowered to libcalls for every in-tree target.


This isn't true. On AMDGPU we select sin and cos at least to a sequence involving a hardware instruction (but we use these as the fast versions)


Repository:
  rL LLVM

https://reviews.llvm.org/D28335





More information about the llvm-commits mailing list