File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -1347,7 +1347,7 @@ unsigned MachineJumpTableInfo::createJumpTableIndex(
13471347void MachineJumpTableInfo::updateJumpTableHotness (size_t JTI,
13481348 DataHotness Hotness) {
13491349 assert (JTI < JumpTables.size () && " Invalid JTI!" );
1350- // Note record the largest hotness is important for mergable data (constant
1350+ // Note: recording the largest hotness is important for mergable data (constant
13511351 // pools). Even if jump table instances are not merged, record the largest
13521352 // value seen fwiw.
13531353 JumpTables[JTI].Hotness = std::max (JumpTables[JTI].Hotness , Hotness);
Original file line number Diff line number Diff line change @@ -97,10 +97,7 @@ bool StaticDataSplitter::splitJumpTablesWithProfiles(
9797 if (JTI == -1 )
9898 continue ;
9999
100- bool AllBlocksCold = true ;
101-
102- if (!PSI->isColdBlock (&MBB, MBFI))
103- AllBlocksCold = false ;
100+ bool AllBlocksCold = PSI->isColdBlock (&MBB, MBFI);
104101
105102 for (const MachineBasicBlock *MBB : MJTI.getJumpTables ()[JTI].MBBs )
106103 if (!PSI->isColdBlock (MBB, MBFI))
You can’t perform that action at this time.
0 commit comments