We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c19fda commit 4f1b98bCopy full SHA for 4f1b98b
llvm/lib/Transforms/Utils/CodeLayout.cpp
@@ -1285,7 +1285,7 @@ class CDSortImpl {
1285
// Cache misses on the merged chain
1286
double MergedCounts = ChainPred->ExecutionCount + ChainSucc->ExecutionCount;
1287
double MergedSize = ChainPred->Size + ChainSucc->Size;
1288
- double MergedDensity = static_cast<double>(MergedCounts) / MergedSize;
+ double MergedDensity = MergedCounts / MergedSize;
1289
double NewScore = MergedCounts * missProbability(MergedDensity);
1290
1291
return CurScore - NewScore;
0 commit comments