Skip to content

Commit 4f1b98b

Browse files
[Utils] Remove an unnecessary cast (NFC) (#157023)
MergedCounts is of type double.
1 parent 1c19fda commit 4f1b98b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Utils/CodeLayout.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1285,7 +1285,7 @@ class CDSortImpl {
12851285
// Cache misses on the merged chain
12861286
double MergedCounts = ChainPred->ExecutionCount + ChainSucc->ExecutionCount;
12871287
double MergedSize = ChainPred->Size + ChainSucc->Size;
1288-
double MergedDensity = static_cast<double>(MergedCounts) / MergedSize;
1288+
double MergedDensity = MergedCounts / MergedSize;
12891289
double NewScore = MergedCounts * missProbability(MergedDensity);
12901290

12911291
return CurScore - NewScore;

0 commit comments

Comments
 (0)