Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
Remove implementation of global split as feature has no line-of-sight to
enable due to perf regressions.
  • Loading branch information
pratikashar authored and igcbot committed Jul 25, 2023
1 parent 0c1367e commit 985b62d
Show file tree
Hide file tree
Showing 18 changed files with 1,300 additions and 2,489 deletions.
2 changes: 2 additions & 0 deletions visa/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ set(GenX_Common_Sources_External_Other
CFGStructurizer.cpp
Common_BinaryEncoding.cpp
DebugInfo.cpp
RADebug.cpp
FlagSpillCleanup.cpp
FlowGraph.cpp
G4_BB.cpp
Expand Down Expand Up @@ -321,6 +322,7 @@ set(GenX_Common_Headers
Common_BinaryEncoding.h
Common_GEN.h
DebugInfo.h
RADebug.h
FlagSpillCleanup.h
FlowGraph.h
G4_BB.hpp
Expand Down
14 changes: 0 additions & 14 deletions visa/G4_Kernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -491,11 +491,6 @@ G4_Kernel::~G4_Kernel() {
gtPinInfo.reset();
}

if (varSplitPass) {
delete varSplitPass;
varSplitPass = nullptr;
}

Declares.clear();
}

Expand Down Expand Up @@ -924,15 +919,6 @@ std::string G4_Kernel::getDebugSrcLine(const std::string &fileName,
return lines[srcLine - 1];
}

VarSplitPass *G4_Kernel::getVarSplitPass() {
if (varSplitPass)
return varSplitPass;

varSplitPass = new VarSplitPass(*this);

return varSplitPass;
}

unsigned G4_Kernel::getLargestInputRegister() {
const unsigned inputCount = fg.builder->getInputCount();
unsigned regNum = 0;
Expand Down
3 changes: 0 additions & 3 deletions visa/G4_Kernel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,6 @@ class G4_Kernel {

bool m_hasIndirectCall = false;

VarSplitPass *varSplitPass = nullptr;
GRFMode grfMode;

// map key is filename string with complete path.
Expand Down Expand Up @@ -649,8 +648,6 @@ class G4_Kernel {

std::string getDebugSrcLine(const std::string &filename, int lineNo);

VarSplitPass *getVarSplitPass();

VISATarget getKernelType() const { return kernelType; }
void setKernelType(VISATarget t) { kernelType = t; }

Expand Down
Loading

0 comments on commit 985b62d

Please sign in to comment.