Skip to content

Commit c59cb6f

Browse files
jgu222igcbot
authored andcommitted
For pass that does not change IR, return false. This can potentially save
compiling time.
1 parent 0f97222 commit c59cb6f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

IGC/Compiler/CISACodeGen/TimeStatsCounter.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,6 @@ bool TimeStatsCounter::runOnModule(Module& F) {
115115
COMPILER_TIME_PASS_END(ctx, igcPass);
116116
}
117117
}
118-
return true;
118+
return false;
119119
}
120120

IGC/Compiler/CISACodeGen/TranslationTable.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ namespace IGC
5555

5656
bool TranslationTable::runOnFunction(Function& F)
5757
{
58-
return run(F);
58+
(void)run(F);
59+
return false;
5960
}
6061

6162
bool TranslationTable::run(Function& F)

0 commit comments

Comments
 (0)