From c4e9857e3e1eec5f8faf394e8cb63e75b0e9182d Mon Sep 17 00:00:00 2001 From: "Kwasniewski, Patryk" Date: Mon, 23 Sep 2024 06:28:01 +0000 Subject: [PATCH] disable IndVarSimplification pass disable IndVarSimplification pass --- IGC/common/igc_flags.h | 2 +- IGC/ocloc_tests/optimizations/IndVarSimplification.cl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/IGC/common/igc_flags.h b/IGC/common/igc_flags.h index 16b9ae26da77..822da22df074 100644 --- a/IGC/common/igc_flags.h +++ b/IGC/common/igc_flags.h @@ -209,7 +209,7 @@ DECLARE_IGC_REGKEY(bool, DisableIRVerification, false, "Setting this to DECLARE_IGC_REGKEY(bool, EnableJumpThreading, true, "Setting this to 1/true adds a compiler switch to enable llvm jumpThreading pass.", true) DECLARE_IGC_REGKEY(bool, DisableLoopUnroll, false, "Setting this to 1/true adds a compiler switch to disable loop unrolling.", true) 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) -DECLARE_IGC_REGKEY(bool, EnableIndVarSimplification, true, "Enables IndVarSimplification pass.", true) +DECLARE_IGC_REGKEY(bool, EnableIndVarSimplification, false, "Enables IndVarSimplification pass.", true) DECLARE_IGC_REGKEY(bool, DisableBranchSwaping, false, "Setting this to 1/true adds a compiler switch to disable branch swapping.", false) DECLARE_IGC_REGKEY(bool, DisableSynchronizationObjectCoalescingPass, false, "Disable SynchronizationObjectCoalescing pass", false) DECLARE_IGC_REGKEY(bool, EnableIndependentSharedMemoryFenceFunctionality, false, "Enable treating global memory fences as shared memory fences in SynchronizationObjectCoalescing pass", false) diff --git a/IGC/ocloc_tests/optimizations/IndVarSimplification.cl b/IGC/ocloc_tests/optimizations/IndVarSimplification.cl index e471e92c3b27..e6b80da738fa 100644 --- a/IGC/ocloc_tests/optimizations/IndVarSimplification.cl +++ b/IGC/ocloc_tests/optimizations/IndVarSimplification.cl @@ -8,7 +8,7 @@ SPDX-License-Identifier: MIT // REQUIRES: regkeys,pvc-supported,llvm-14-plus -// RUN: ocloc compile -file %s -device pvc -options "-igc_opts 'PrintToConsole=1,PrintAfter=EmitPass'" 2>&1 | FileCheck %s +// RUN: ocloc compile -file %s -device pvc -options "-igc_opts 'EnableIndVarSimplification=1,PrintToConsole=1,PrintAfter=EmitPass'" 2>&1 | FileCheck %s // CHECK-NOT: phi // CHECK: [[LOAD:%.*]] = load i32, i32 addrspace(1)* [[PTR:%.*]]