File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -730,14 +730,12 @@ bool preRA_Scheduler::runWithGRFSelection(unsigned &KernelPressure) {
730
730
KernelPressure = rp.getMaxRP ();
731
731
}
732
732
733
- unsigned ExtraRegs = 0 ;
734
- if (kernel.grfMode .hasLargerGRFSameThreads ()) {
735
- // In RA extra registers might be needed to satisfy some restrictions,
736
- // e.g. alignment, SIMD size, etc. So in order to avoid spill in GRF
737
- // modes smaller than default, extra registers are added to reg pressure.
738
- ExtraRegs =
739
- (unsigned )(kernel.getNumRegTotal () * EXTRA_REGISTERS_FOR_RA / 100 .0f );
740
- }
733
+ // In RA extra registers might be needed to satisfy some restrictions,
734
+ // e.g. alignment, SIMD size, etc. So in order to avoid spill in GRF
735
+ // modes smaller than default, extra registers are added to reg pressure.
736
+ unsigned ExtraRegs =
737
+ (unsigned )(kernel.getNumRegTotal () * EXTRA_REGISTERS_FOR_RA / 100 .0f );
738
+
741
739
kernel.updateKernelByRegPressure (KernelPressure + ExtraRegs);
742
740
743
741
return Changed;
You can’t perform that action at this time.
0 commit comments