[TLI][AMDGPU] AMDPAL does not have library functions
authorTim Renouf <tpr.llvm@botech.co.uk>
Wed, 11 Sep 2019 07:26:39 +0000 (07:26 +0000)
committerTim Renouf <tpr.llvm@botech.co.uk>
Wed, 11 Sep 2019 07:26:39 +0000 (07:26 +0000)
commitc26b3940c3207597b98bbe5331b886155b4441a9
tree50052d64279e3b63a007ab41140607d48b1a5d64
parent27f2b81b6b72e10b7534abfcbf3249f99fab3bd4
[TLI][AMDGPU] AMDPAL does not have library functions

Configure TLI to say that r600/amdgpu does not have any library
functions, such that InstCombine does not do anything like turn sin/cos
into the library function @tan with sufficient fast math flags.

Differential Revision: https://reviews.llvm.org/D67406

Change-Id: I02f907d3e64832117ea9800e9f9285282856e5df
llvm-svn: 371592
llvm/lib/Analysis/TargetLibraryInfo.cpp
llvm/test/Transforms/InstCombine/AMDGPU/tan.ll [new file with mode: 0644]