mirror of
https://github.com/intel/intel-graphics-compiler.git
synced 2025-10-30 08:18:26 +08:00
Disable CodeScheduling for older platforms
Disable CodeScheduling for older platforms
This commit is contained in:
committed by
igcbot
parent
75b46bbc7d
commit
a22afc6f41
@ -244,7 +244,8 @@ void AddAnalysisPasses(CodeGenContext &ctx, IGCPassManager &mpm) {
|
||||
ctx.m_instrTypes.numInsts >= IGC_GET_FLAG_VALUE(CodeLoopSinkingMinSize)) {
|
||||
mpm.add(new CodeLoopSinking());
|
||||
}
|
||||
if (IGC_IS_FLAG_DISABLED(DisableCodeScheduling) && (ctx.type == ShaderType::OPENCL_SHADER)) {
|
||||
if (IGC_IS_FLAG_DISABLED(DisableCodeScheduling) && (ctx.type == ShaderType::OPENCL_SHADER) &&
|
||||
(ctx.platform.isCoreChildOf(IGFX_XE_HPC_CORE) || ctx.platform.isCoreChildOf(IGFX_XE2_HPG_CORE))) {
|
||||
if (IGC_IS_FLAG_DISABLED(CodeSchedulingOnlyRecompilation) || ctx.m_retryManager.AllowCodeScheduling()) {
|
||||
mpm.add(new CodeScheduling());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user