summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86TargetTransformInfo.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2019-05-05 20:03:51 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2019-05-05 20:03:51 +0000
commitaddc90e4e830f5bf76862f567e545b11aefbde81 (patch)
treef0f975f4b948a22f95c748713eaf145718521ab9 /llvm/lib/Target/X86/X86TargetTransformInfo.cpp
parentaa9d2623a055e92ec27fb74103c2ae72e6914408 (diff)
downloadbcm5719-llvm-addc90e4e830f5bf76862f567e545b11aefbde81.tar.gz
bcm5719-llvm-addc90e4e830f5bf76862f567e545b11aefbde81.zip
[TTI][X86] Make getAddressComputationCost cost value const. NFCI.
llvm-svn: 359999
Diffstat (limited to 'llvm/lib/Target/X86/X86TargetTransformInfo.cpp')
-rw-r--r--llvm/lib/Target/X86/X86TargetTransformInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86TargetTransformInfo.cpp b/llvm/lib/Target/X86/X86TargetTransformInfo.cpp
index b0a45fba17b..7f0e431bd08 100644
--- a/llvm/lib/Target/X86/X86TargetTransformInfo.cpp
+++ b/llvm/lib/Target/X86/X86TargetTransformInfo.cpp
@@ -2401,7 +2401,7 @@ int X86TTIImpl::getAddressComputationCost(Type *Ty, ScalarEvolution *SE,
// likely result in more instructions compared to scalar code where the
// computation can more often be merged into the index mode. The resulting
// extra micro-ops can significantly decrease throughput.
- unsigned NumVectorInstToHideOverhead = 10;
+ const unsigned NumVectorInstToHideOverhead = 10;
// Cost modeling of Strided Access Computation is hidden by the indexing
// modes of X86 regardless of the stride value. We dont believe that there
OpenPOWER on IntegriCloud