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 @@ -1693,7 +1693,8 @@ void OptimizeIR(CodeGenContext *const pContext) {
16931693 mpm.add (createIntDivConstantReductionPass ());
16941694 }
16951695
1696- if (IGC_IS_FLAG_ENABLED (EnableIntDivRemIncrementReduction)) {
1696+ if (IGC_IS_FLAG_ENABLED (EnableIntDivRemIncrementReduction) &&
1697+ !pContext->getModuleMetaData ()->compOpt .DisableIntDivRemIncrementReduction ) {
16971698 mpm.add (createIntDivRemIncrementReductionPass ());
16981699 }
16991700 GFX_ONLY_PASS { mpm.add (createMergeMemFromBranchOptPass ()); }
Original file line number Diff line number Diff line change @@ -459,6 +459,7 @@ enum class ShaderTypeMD
459459 bool DisableEarlyOut = false ;
460460 bool ForceInt32DivRemEmu = false ;
461461 bool ForceInt32DivRemEmuSP = false ;
462+ bool DisableIntDivRemIncrementReduction = false ;
462463 bool DisableFastestSingleCSSIMD = false ;
463464 bool DisableFastestLinearScan = false ;
464465 // if PTSS is enabled and if PrivateData is too large (>256k in XeHP_SDV+),
You can’t perform that action at this time.
0 commit comments