[AMDGPU][CostModel] Add fneg cost estimation
authordfukalov <daniil.fukalov@amd.com>
Thu, 18 Jun 2020 00:46:18 +0000 (03:46 +0300)
committerdfukalov <daniil.fukalov@amd.com>
Fri, 19 Jun 2020 14:31:35 +0000 (17:31 +0300)
commit129388ddc4dfa2d033afa720d02b7f2af047582b
tree147cbe06d727be12b1b836f664ab002eb9a6e5de
parent35ec06f9669775044f6ff2f1db1203a6904e5d2a
[AMDGPU][CostModel] Add fneg cost estimation

Summary: The estimation uses AMDGPUTargetLowering::isFNegFree()

Reviewers: rampitec

Reviewed By: rampitec

Subscribers: arsenm, kzhuravl, jvesely, wdng, nhaehnle, yaxunl, dstuttard, tpr, t-tye, hiraditya, kerbowa, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D82065
llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
llvm/test/Analysis/CostModel/AMDGPU/fneg.ll [new file with mode: 0644]