File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -1672,8 +1672,8 @@ bool BB_Scheduler::scheduleBlockForLatency(unsigned &MaxPressure,
1672
1672
return false ;
1673
1673
1674
1674
// UpperBoundGRF == 0 means we are scheduling for the fixed number of GRF
1675
- unsigned LatencyPressureThreshold = getLatencyHidingThreshold (kernel, nr);
1676
- if (UpperBoundGRF == 0 && MaxPressure >= LatencyPressureThreshold )
1675
+ if (UpperBoundGRF == 0 &&
1676
+ MaxPressure >= getLatencyHidingThreshold (kernel, nr) )
1677
1677
return false ;
1678
1678
1679
1679
// simple ROI check.
@@ -1685,15 +1685,8 @@ bool BB_Scheduler::scheduleBlockForLatency(unsigned &MaxPressure,
1685
1685
NumOfHighLatencyInsts++;
1686
1686
}
1687
1687
}
1688
- if (kernel.fg .builder ->hasFiveALUPipes ()) {
1689
- // For latest platform, do scheduling for kernels with low register
1690
- // pressure to improve ILP. Currently, half pressure threshold is used.
1691
- // Maybe tuned in future.
1692
- return (NumOfHighLatencyInsts >= 2 ) ||
1693
- (MaxPressure < (LatencyPressureThreshold / 2 ));
1694
- } else {
1695
- return (NumOfHighLatencyInsts >= 2 );
1696
- }
1688
+
1689
+ return NumOfHighLatencyInsts >= 2 ;
1697
1690
};
1698
1691
1699
1692
unsigned NumGrfs =
You can’t perform that action at this time.
0 commit comments