Skip to content

Commit f6c60b6

Browse files
fftzengigcbot
authored andcommitted
Add UMD control to disable earlyOut opt
Add UMD control to disable earlyOut opt
1 parent da988ad commit f6c60b6

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

IGC/Compiler/CustomUnsafeOptPass.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3045,6 +3045,7 @@ bool EarlyOutPatterns::runOnFunction(Function& F)
30453045
{
30463046
m_ctx = getAnalysis<CodeGenContextWrapper>().getCodeGenContext();
30473047
if (IGC_IS_FLAG_ENABLED(DisableEarlyOutPatterns) ||
3048+
m_ctx->getModuleMetaData()->compOpt.DisableEarlyOut ||
30483049
m_ctx->m_DriverInfo.WaNOSNotResolved())
30493050
{
30503051
return false;

IGC/common/MDFrameWork.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,7 @@ namespace IGC
411411
bool disableMathRefactoring = false;
412412
bool atomicBranch = false;
413413
bool spillCompression = false;
414+
bool DisableEarlyOut = false;
414415
bool ForceInt32DivRemEmu = false;
415416
bool ForceInt32DivRemEmuSP = false;
416417
bool DisableFastestSingleCSSIMD = false;
@@ -493,6 +494,8 @@ namespace IGC
493494
bool atomicBranch = false;
494495
// enable spill compression
495496
bool spillCompression = false;
497+
// disable early out
498+
bool disableEarlyOut = false;
496499
// enable compute walk order optimization
497500
bool walkOrderEnabled = false;
498501
unsigned int walkOrderOverride = 0;

0 commit comments

Comments
 (0)