File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,8 @@ CustomUnsafeOptPass::CustomUnsafeOptPass()
115
115
116
116
bool CustomUnsafeOptPass::runOnFunction (Function& F)
117
117
{
118
- if (IGC_IS_FLAG_ENABLED (DisableCustomUnsafeOpt))
118
+ if (getAnalysis<MetaDataUtilsWrapper>().getModuleMetaData ()->compOpt .disableCustomUnsafeOpts ||
119
+ IGC_IS_FLAG_ENABLED (DisableCustomUnsafeOpt))
119
120
{
120
121
return false ;
121
122
}
Original file line number Diff line number Diff line change @@ -377,6 +377,7 @@ namespace IGC
377
377
unsigned VISAPreSchedRPThreshold = 0 ;
378
378
unsigned SetLoopUnrollThreshold = 0 ;
379
379
bool UnsafeMathOptimizations = false ;
380
+ bool disableCustomUnsafeOpts = false ;
380
381
bool FiniteMathOnly = false ;
381
382
bool FastRelaxedMath = false ;
382
383
bool DashGSpecified = false ;
You can’t perform that action at this time.
0 commit comments