Skip to content

Commit 0aace4a

Browse files
weiyu-chensys_zuul
authored andcommitted
Minor refactor to internal IR debug dumps.
Change-Id: If4301c6cefd142d361a5c8b3597c7601b7185e40
1 parent 74792f2 commit 0aace4a

File tree

4 files changed

+2
-24
lines changed

4 files changed

+2
-24
lines changed

visa/BuildCISAIRImpl.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,7 @@ static void Stitch_Compiled_Units(G4_Kernel* mainFunc, std::map<std::string, G4_
536536
mainFunc->Declares.push_back(curDcl);
537537
}
538538
}
539+
mainFunc->dumpDotFile("stitched");
539540
}
540541

541542

visa/FlowGraph.cpp

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ void FlowGraph::constructFlowGraph(INST_LIST& instlist)
794794

795795
if (builder->getOption(vISA_DumpDotAll))
796796
{
797-
pKernel->dumpDotFile("beforeRemoveRedundantLabels");
797+
pKernel->dumpDotFile("afterCFGConstruction");
798798
}
799799

800800
removeRedundantLabels();
@@ -833,10 +833,6 @@ void FlowGraph::constructFlowGraph(INST_LIST& instlist)
833833
mergeFReturns();
834834
}
835835

836-
if (builder->getOption(vISA_DumpDotAll))
837-
{
838-
pKernel->dumpDotFile("beforeRemoveUnreachableBlocks");
839-
}
840836
removeUnreachableBlocks();
841837

842838
if (builder->getOption(vISA_DumpDotAll))
@@ -864,11 +860,6 @@ void FlowGraph::constructFlowGraph(INST_LIST& instlist)
864860
if (builder->getOption(vISA_EnableStructurizer) &&
865861
!endWithGotoInLastBB())
866862
{
867-
if (builder->getOption(vISA_DumpDotAll))
868-
{
869-
pKernel->dumpDotFile("before_doCFGStructurizer");
870-
}
871-
872863
doCFGStructurize(this);
873864

874865
if (builder->getOption(vISA_DumpDotAll))
@@ -878,10 +869,6 @@ void FlowGraph::constructFlowGraph(INST_LIST& instlist)
878869
}
879870
else
880871
{
881-
if (builder->getOption(vISA_DumpDotAll))
882-
{
883-
pKernel->dumpDotFile("beforeProcessGoto");
884-
}
885872
processGoto(hasSIMDCF);
886873
if (builder->getOption(vISA_DumpDotAll))
887874
{

visa/Optimizer.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -461,9 +461,6 @@ void Optimizer::runPass(PassIndex Index)
461461

462462
std::string Name = PI.Name;
463463

464-
if (builder.getOption(vISA_DumpDotAll))
465-
kernel.dumpDotFile(("before." + Name).c_str());
466-
467464
if (PI.Timer != TIMER_NUM_TIMERS)
468465
startTimer(PI.Timer);
469466

visa/Rematerialization.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1032,13 +1032,6 @@ namespace vISA
10321032

10331033
void Rematerialization::run()
10341034
{
1035-
//unsigned int before = getNumSamplers(kernel);
1036-
1037-
if (kernel.fg.builder->getOption(vISA_DumpDotAll))
1038-
{
1039-
kernel.dumpDotFile("before.remat");
1040-
}
1041-
10421035
populateRefs();
10431036

10441037
auto firstProgInst = kernel.fg.getEntryBB()->getFirstInst();

0 commit comments

Comments
 (0)