Skip to content

Commit 1169711

Browse files
committed
Revert " enable RemoveUnusedIdImplicitArguments for Xe family"
This reverts commit dc6552b.
1 parent 8f1d2d2 commit 1169711

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

IGC/Compiler/CISACodeGen/OpenCLKernelCodeGen.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2454,7 +2454,7 @@ namespace IGC
24542454
arg.getArgType() == KernelArg::ArgType::IMPLICIT_BUFFER_SIZE) &&
24552455
arg.getArg()->use_empty();
24562456

2457-
if (m_Context->platform.allowRemovingUnusedImplicitArguments())
2457+
if (IGC_IS_FLAG_ENABLED(RemoveUnusedIdImplicitArguments))
24582458
{
24592459
IsUnusedArg |=
24602460
(arg.getArgType() == KernelArg::ArgType::IMPLICIT_PAYLOAD_HEADER || // contains global_id_offset

IGC/Compiler/CISACodeGen/Platform.hpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1897,13 +1897,5 @@ bool allowProceedBasedApproachForRayQueryDynamicRayManagementMechanism() const
18971897
return IGC_IS_FLAG_DISABLED(DisableProceedBasedApproachForRayQueryDynamicRayManagementMechanism);
18981898
}
18991899

1900-
bool allowRemovingUnusedImplicitArguments() const
1901-
{
1902-
if (IGC_IS_FLAG_SET(RemoveUnusedIdImplicitArguments))
1903-
return IGC_IS_FLAG_ENABLED(RemoveUnusedIdImplicitArguments);
1904-
1905-
return isCoreChildOf(IGFX_XE_HP_CORE) && !isCoreChildOf(IGFX_XE2_HPG_CORE);
1906-
}
1907-
19081900
};
19091901
}//namespace IGC

0 commit comments

Comments
 (0)