Skip to content

Commit 3104b45

Browse files
bcheng0127igcbot
authored andcommitted
Update the insertInstLabel to fixEndifWhileLabels
1 parent 708bc5f commit 3104b45

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

visa/Optimizer.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1011,7 +1011,7 @@ void Optimizer::initOptimizations()
10111011
INITIALIZE_PASS(FoldAddrImmediate, vISA_FoldAddrImmed, TimerID::MISC_OPTS);
10121012
INITIALIZE_PASS(localSchedule, vISA_LocalScheduling, TimerID::SCHEDULING);
10131013
INITIALIZE_PASS(HWWorkaround, vISA_EnableAlways, TimerID::MISC_OPTS);
1014-
INITIALIZE_PASS(insertInstLabels, vISA_EnableAlways, TimerID::NUM_TIMERS);
1014+
INITIALIZE_PASS(fixEndIfWhileLabels, vISA_EnableAlways, TimerID::NUM_TIMERS);
10151015
INITIALIZE_PASS(insertHashMovs, vISA_InsertHashMovs, TimerID::NUM_TIMERS);
10161016
INITIALIZE_PASS(insertDummyMovForHWRSWA, vISA_InsertDummyMovForHWRSWA, TimerID::NUM_TIMERS);
10171017
INITIALIZE_PASS(insertDummyCompactInst, vISA_InsertDummyCompactInst, TimerID::NUM_TIMERS);
@@ -1534,7 +1534,7 @@ int Optimizer::optimization()
15341534

15351535
// this must be the last step of the optimization so as to not violate
15361536
// the CFG assumption
1537-
runPass(PI_insertInstLabels);
1537+
runPass(PI_fixEndIfWhileLabels);
15381538

15391539
runPass(PI_insertHashMovs);
15401540

@@ -1608,7 +1608,7 @@ int Optimizer::optimization()
16081608
// (P) WHILE
16091609
// L2
16101610
//
1611-
void Optimizer::insertInstLabels()
1611+
void Optimizer::fixEndIfWhileLabels()
16121612
{
16131613
for (BB_LIST_CITER iter = fg.cbegin(), bend = fg.cend(); iter != bend; ++iter)
16141614
{

visa/Optimizer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ class Optimizer
160160
void collectStats();
161161
void createR0Copy();
162162

163-
void insertInstLabels();
163+
void fixEndIfWhileLabels();
164164
void mergeScalarInst();
165165
void HWConformityChk() { ::HWConformityChk(builder, kernel, mem); }
166166
void removeRedundMov() { fg.removeRedundMov(); }
@@ -328,7 +328,7 @@ class Optimizer
328328
PI_FoldAddrImmediate,
329329
PI_localSchedule,
330330
PI_HWWorkaround, // always
331-
PI_insertInstLabels, // always
331+
PI_fixEndIfWhileLabels, // always
332332
PI_insertHashMovs,
333333
PI_insertDummyMovForHWRSWA,
334334
PI_insertDummyCompactInst,

0 commit comments

Comments
 (0)