diff options
| author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-05-05 20:03:51 +0000 | 
|---|---|---|
| committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-05-05 20:03:51 +0000 | 
| commit | addc90e4e830f5bf76862f567e545b11aefbde81 (patch) | |
| tree | f0f975f4b948a22f95c748713eaf145718521ab9 | |
| parent | aa9d2623a055e92ec27fb74103c2ae72e6914408 (diff) | |
| download | bcm5719-llvm-addc90e4e830f5bf76862f567e545b11aefbde81.tar.gz bcm5719-llvm-addc90e4e830f5bf76862f567e545b11aefbde81.zip | |
[TTI][X86] Make getAddressComputationCost cost value const. NFCI.
llvm-svn: 359999
| -rw-r--r-- | llvm/lib/Target/X86/X86TargetTransformInfo.cpp | 2 | 
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 | 

