Skip to content

Commit cdecbbc

Browse files
committed
static_cast
1 parent 70ce91d commit cdecbbc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/AMDGPU/AMDGPUSplitModule.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1100,8 +1100,8 @@ void RecursiveSearchSplitting::pickPartition(unsigned Depth, unsigned Idx,
11001100
if (Entry.CostExcludingGraphEntryPoints > LargeClusterThreshold) {
11011101
// Check if the amount of code in common makes it worth it.
11021102
assert(SimilarDepsCost && Entry.CostExcludingGraphEntryPoints);
1103-
const double Ratio =
1104-
(double)SimilarDepsCost / Entry.CostExcludingGraphEntryPoints;
1103+
const double Ratio = static_cast<double>(SimilarDepsCost) /
1104+
Entry.CostExcludingGraphEntryPoints;
11051105
assert(Ratio >= 0.0 && Ratio <= 1.0);
11061106
if (Ratio > LargeFnOverlapForMerge) {
11071107
// For debug, just print "L", so we'll see "L3=P3" for instance, which

0 commit comments

Comments
 (0)