summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/TargetLoweringBase.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2015-01-13 20:53:23 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2015-01-13 20:53:23 +0000
commitbf0db918b23cb28b8ed35fe0371d0d9be6fd27f4 (patch)
tree0c652c950ff493f9058e8e8998486df42f556b5e /llvm/lib/CodeGen/TargetLoweringBase.cpp
parente93d06a5793514da2c6b16165e67361443094a4e (diff)
downloadbcm5719-llvm-bf0db918b23cb28b8ed35fe0371d0d9be6fd27f4.tar.gz
bcm5719-llvm-bf0db918b23cb28b8ed35fe0371d0d9be6fd27f4.zip
R600: Implement getRecipEstimate
This requires a new hook to prevent expanding sqrt in terms of rsqrt and reciprocal. v_rcp_f32, v_rsq_f32, and v_sqrt_f32 are all the same rate, so this expansion would just double the number of instructions and cycles. llvm-svn: 225828
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringBase.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetLoweringBase.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringBase.cpp b/llvm/lib/CodeGen/TargetLoweringBase.cpp
index fae54d2c304..9b2fdffa87c 100644
--- a/llvm/lib/CodeGen/TargetLoweringBase.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringBase.cpp
@@ -710,6 +710,7 @@ TargetLoweringBase::TargetLoweringBase(const TargetMachine &tm)
HasMultipleConditionRegisters = false;
HasExtractBitsInsn = false;
IntDivIsCheap = false;
+ FsqrtIsCheap = false;
Pow2SDivIsCheap = false;
JumpIsExpensive = false;
PredictableSelectIsExpensive = false;
OpenPOWER on IntegriCloud