diff options
| author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2015-12-16 18:37:19 +0000 |
|---|---|---|
| committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2015-12-16 18:37:19 +0000 |
| commit | e05ff151866610c53a8730a51a5cabef3cc09138 (patch) | |
| tree | 2dd012ae1f54552debb36e77729685e77ac94938 /llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.h | |
| parent | 5ce530608f4acfbb76e47757c07b6d349aacb8c0 (diff) | |
| download | bcm5719-llvm-e05ff151866610c53a8730a51a5cabef3cc09138.tar.gz bcm5719-llvm-e05ff151866610c53a8730a51a5cabef3cc09138.zip | |
AMDGPU: Override getCFInstrCost
The default cost was 0 with the assumption that it is predictable.
llvm-svn: 255796
Diffstat (limited to 'llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.h')
| -rw-r--r-- | llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.h b/llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.h index 2a9727141b3..976afb03443 100644 --- a/llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.h +++ b/llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.h @@ -61,6 +61,8 @@ public: unsigned getRegisterBitWidth(bool Vector); unsigned getMaxInterleaveFactor(unsigned VF); + unsigned getCFInstrCost(unsigned Opcode); + int getVectorInstrCost(unsigned Opcode, Type *ValTy, unsigned Index); bool isSourceOfDivergence(const Value *V) const; }; |

