Skip to content

Commit bd2945b

Browse files
pkwasnie-inteligcbot
authored andcommitted
enable RemoveUnusedIdImplicitArguments by default
enable RemoveUnusedIdImplicitArguments by default
1 parent 64ec294 commit bd2945b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

IGC/common/igc_flags.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,7 @@ DECLARE_IGC_REGKEY_ENUM(SupportUniformPrivateMemorySpace, -1, \
943943
" 1 - force enabled", \
944944
TRIBOOL_OPTIONS, true)
945945
DECLARE_IGC_REGKEY(bool, ShortImplicitPayloadHeader, false, "Replaces implicit kernel argument 8xi32 payloadHeader with 3xi32 globalOffset", true)
946-
DECLARE_IGC_REGKEY(bool, RemoveUnusedIdImplicitArguments, false, "Remove implicit arguments: global_id_offset (payloadHeader) and/or enqueued_local_size if unused. " \
946+
DECLARE_IGC_REGKEY(bool, RemoveUnusedIdImplicitArguments, true, "Remove implicit arguments: global_id_offset (payloadHeader) and/or enqueued_local_size if unused. " \
947947
"Useful if kernel doesn't use global id.", true)
948948

949949
DECLARE_IGC_GROUP("Generating precompiled headers")

IGC/ocloc_tests/features/constant_buffer/noinline.cl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ SPDX-License-Identifier: MIT
1111
// Verify that implicit kernel arguments are not removed for kernels with subroutines.
1212
// Arguments can be removed for stackcalls.
1313

14-
// RUN: ocloc compile -file %s -device pvc -options "-cl-std=CL2.0 -igc_opts 'EnableStackCallFuncCall=0, RemoveUnusedIdImplicitArguments=1, ShortImplicitPayloadHeader=1, DumpZEInfoToConsole=1'" 2>&1 | FileCheck %s --check-prefix=CHECK-SUBROUTINE
15-
// RUN: ocloc compile -file %s -device pvc -options "-cl-std=CL2.0 -igc_opts 'EnableStackCallFuncCall=1, RemoveUnusedIdImplicitArguments=1, ShortImplicitPayloadHeader=1, DumpZEInfoToConsole=1'" 2>&1 | FileCheck %s --check-prefix=CHECK-STACKCALL
14+
// RUN: ocloc compile -file %s -device pvc -options "-cl-std=CL2.0 -igc_opts 'EnableStackCallFuncCall=0, ShortImplicitPayloadHeader=1, DumpZEInfoToConsole=1'" 2>&1 | FileCheck %s --check-prefix=CHECK-SUBROUTINE
15+
// RUN: ocloc compile -file %s -device pvc -options "-cl-std=CL2.0 -igc_opts 'EnableStackCallFuncCall=1, ShortImplicitPayloadHeader=1, DumpZEInfoToConsole=1'" 2>&1 | FileCheck %s --check-prefix=CHECK-STACKCALL
1616

1717
// CHECK-SUBROUTINE: name: kernel_that_must_have_args
1818
// CHECK-SUBROUTINE: payload_arguments:

0 commit comments

Comments
 (0)