summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86TargetTransformInfo.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2019-12-05 10:24:10 -0800
committerCraig Topper <craig.topper@intel.com>2019-12-05 10:58:57 -0800
commitf688570d5c5493e969d5fca599d6eb8a796e27ca (patch)
tree6231a3e21f2fddf97a6af1a862435e963e09ba54 /llvm/lib/Target/X86/X86TargetTransformInfo.cpp
parent055779a9ac11e56442cbcdc73da59f8bce7ce57d (diff)
downloadbcm5719-llvm-f688570d5c5493e969d5fca599d6eb8a796e27ca.tar.gz
bcm5719-llvm-f688570d5c5493e969d5fca599d6eb8a796e27ca.zip
[X86] Remove ProcIntelGLM/ProcIntelGLP/ProcIntelTRM and replace them with a single feature flag covers the two places they were used.
Differential Revision: https://reviews.llvm.org/D71048
Diffstat (limited to 'llvm/lib/Target/X86/X86TargetTransformInfo.cpp')
-rw-r--r--llvm/lib/Target/X86/X86TargetTransformInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/X86TargetTransformInfo.cpp b/llvm/lib/Target/X86/X86TargetTransformInfo.cpp
index f64fedd8cbb..831b6a76ed1 100644
--- a/llvm/lib/Target/X86/X86TargetTransformInfo.cpp
+++ b/llvm/lib/Target/X86/X86TargetTransformInfo.cpp
@@ -188,7 +188,7 @@ int X86TTIImpl::getArithmeticInstrCost(
{ ISD::FDIV, MVT::v2f64, 65 }, // divpd
};
- if (ST->isGLM())
+ if (ST->useGLMDivSqrtCosts())
if (const auto *Entry = CostTableLookup(GLMCostTable, ISD,
LT.second))
return LT.first * Entry->Cost;
@@ -2202,7 +2202,7 @@ int X86TTIImpl::getIntrinsicInstrCost(Intrinsic::ID IID, Type *RetTy,
MVT MTy = LT.second;
// Attempt to lookup cost.
- if (ST->isGLM())
+ if (ST->useGLMDivSqrtCosts())
if (const auto *Entry = CostTableLookup(GLMCostTbl, ISD, MTy))
return LT.first * Entry->Cost;
OpenPOWER on IntegriCloud