Skip to content

Commit fc2f801

Browse files
sys-igcigcbot
authored andcommitted
[Autobackout][FunctionalRegression]Revert of change: af4fb17: enable IndVarSimplification pass
enable IndVarSimplification pass
1 parent e982c19 commit fc2f801

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

IGC/Compiler/CISACodeGen/ShaderCodeGen.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1542,8 +1542,7 @@ void OptimizeIR(CodeGenContext* const pContext)
15421542

15431543
mpm.add(createIGCInstructionCombiningPass());
15441544

1545-
if (IGC_IS_FLAG_ENABLED(EnableIndVarSimplification) &&
1546-
pContext->type == ShaderType::OPENCL_SHADER)
1545+
if (IGC_IS_FLAG_ENABLED(EnableIndVarSimplification))
15471546
{
15481547
mpm.add(llvm::createIndVarSimplifyPass());
15491548
}

IGC/common/igc_flags.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ DECLARE_IGC_REGKEY(bool, DisableIRVerification, false, "Setting this to
213213
DECLARE_IGC_REGKEY(bool, EnableJumpThreading, true, "Setting this to 1/true adds a compiler switch to enable llvm jumpThreading pass.", true)
214214
DECLARE_IGC_REGKEY(bool, DisableLoopUnroll, false, "Setting this to 1/true adds a compiler switch to disable loop unrolling.", true)
215215
DECLARE_IGC_REGKEY(DWORD, RuntimeLoopUnrolling, 0, "Setting this to switch on/off runtime loop unrolling. 0: default (on), 1: force on, 2: force off", false)
216-
DECLARE_IGC_REGKEY(bool, EnableIndVarSimplification, true, "Enables IndVarSimplification pass.", true)
216+
DECLARE_IGC_REGKEY(bool, EnableIndVarSimplification, false, "Enables IndVarSimplification pass.", true)
217217
DECLARE_IGC_REGKEY(bool, DisableBranchSwaping, false, "Setting this to 1/true adds a compiler switch to disable branch swapping.", false)
218218
DECLARE_IGC_REGKEY(bool, DisableSynchronizationObjectCoalescingPass, false, "Disable SynchronizationObjectCoalescing pass", false)
219219
DECLARE_IGC_REGKEY(bool, EnableIndependentSharedMemoryFenceFunctionality, false, "Enable treating global memory fences as shared memory fences in SynchronizationObjectCoalescing pass", false)

0 commit comments

Comments
 (0)