[llvm] r359999 - [TTI][X86] Make getAddressComputationCost cost value const. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sun May 5 13:03:52 PDT 2019
Author: rksimon
Date: Sun May 5 13:03:51 2019
New Revision: 359999
URL: http://llvm.org/viewvc/llvm-project?rev=359999&view=rev
Log:
[TTI][X86] Make getAddressComputationCost cost value const. NFCI.
Modified:
llvm/trunk/lib/Target/X86/X86TargetTransformInfo.cpp
Modified: llvm/trunk/lib/Target/X86/X86TargetTransformInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86TargetTransformInfo.cpp?rev=359999&r1=359998&r2=359999&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86TargetTransformInfo.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86TargetTransformInfo.cpp Sun May 5 13:03:51 2019
@@ -2401,7 +2401,7 @@ int X86TTIImpl::getAddressComputationCos
// 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
More information about the llvm-commits
mailing list