Skip to content

Commit d9a05cd

Browse files
jfuentesigcbot
authored andcommitted
(NFC) Remove unused functions
1 parent 3bb8c52 commit d9a05cd

File tree

2 files changed

+0
-25
lines changed

2 files changed

+0
-25
lines changed

visa/G4_Kernel.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -629,19 +629,6 @@ bool G4_Kernel::updateKernelToLargerGRF() {
629629
return true;
630630
}
631631

632-
//
633-
// Updates kernel's related structures to smaller GRF
634-
//
635-
bool G4_Kernel::updateKernelToSmallerGRF() {
636-
if (numRegTotal == grfMode.getMinGRF())
637-
return false;
638-
639-
// Scale number of GRFs, Acc, SWSB tokens.
640-
setKernelParameters(grfMode.moveToSmallerGRF());
641-
fg.builder->rebuildPhyRegPool(getNumRegTotal());
642-
return true;
643-
}
644-
645632
//
646633
// Updates kernel's related structures based on register pressure
647634
//

visa/G4_Kernel.hpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -215,17 +215,6 @@ class GRFMode {
215215
return configs[currentMode].numGRF;
216216
}
217217

218-
// Move GRF mode to the smaller GRF available and return the number
219-
unsigned moveToSmallerGRF() {
220-
for (auto i = currentMode - 1; i >= 0; --i) {
221-
if (configs[i].VRTEnable) {
222-
currentMode = i;
223-
break;
224-
}
225-
}
226-
return configs[currentMode].numGRF;
227-
}
228-
229218
private:
230219
// Parameters associated to a GRF mode
231220
struct Config {
@@ -691,7 +680,6 @@ class G4_Kernel {
691680
const char *getName() const { return name; }
692681

693682
bool updateKernelToLargerGRF();
694-
bool updateKernelToSmallerGRF();
695683
void updateKernelByRegPressure(unsigned regPressure);
696684
bool updateKernelFromNumGRFAttr();
697685

0 commit comments

Comments
 (0)