Skip to content

Commit 2976363

Browse files
pkwasnie-inteligcbot
authored andcommitted
enable RemoveUnusedIdImplicitArguments for Xe2 family
RemoveUnusedIdImplicitArguments is an option to remove global_id_offset and enqueued_local_size from kernel's implicit argument if they are unused (true if kernel does not use get_global_id()). Enable this option by default for Xe2 family.
1 parent 09dd7ec commit 2976363

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

IGC/Compiler/CISACodeGen/Platform.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1902,7 +1902,7 @@ bool allowRemovingUnusedImplicitArguments() const
19021902
if (IGC_IS_FLAG_SET(RemoveUnusedIdImplicitArguments))
19031903
return IGC_IS_FLAG_ENABLED(RemoveUnusedIdImplicitArguments);
19041904

1905-
return isCoreChildOf(IGFX_XE_HP_CORE) && !isCoreChildOf(IGFX_XE2_HPG_CORE);
1905+
return isCoreChildOf(IGFX_XE_HP_CORE) && !isCoreChildOf(IGFX_XE3_CORE);
19061906
}
19071907

19081908
};

0 commit comments

Comments
 (0)