TTI: Use 0 for cost of fabs if free
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 25 Mar 2016 00:26:22 +0000 (00:26 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 25 Mar 2016 00:26:22 +0000 (00:26 +0000)
commit8e9aa0acc80a96042a7a3a4a35bf4e5b35102003
treec34c6535835ecc9d05ce6da0340d39b2d040bef9
parent6517fb4ff9126ef3e42fb321a81474c2b2f90ee5
TTI: Use 0 for cost of fabs if free

Ideally this would also happen for fneg, but that
isn't a distinct operation in the IR.

llvm-svn: 264368
llvm/include/llvm/CodeGen/BasicTTIImpl.h
llvm/test/Analysis/CostModel/AMDGPU/fabs.ll [new file with mode: 0644]