Skip to content

Commit 8ca10e3

Browse files
lioujheyuigcbot
authored andcommitted
Enable loop unrolling in retry for 3D
Enable loop unrolling in retry for 3D
1 parent aefd009 commit 8ca10e3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

IGC/Compiler/CISACodeGen/ShaderCodeGen.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1353,8 +1353,7 @@ void OptimizeIR(CodeGenContext *const pContext) {
13531353
}
13541354

13551355

1356-
// Can be completely repalced by LoopUnrollForCodeSizeOnly in GenTTI, Consider completely remove this pass
1357-
if (!pContext->m_retryManager.IsFirstTry() && pContext->m_retryManager.IsLastTry()) {
1356+
if (!pContext->m_retryManager.IsFirstTry() && pContext->type == ShaderType::OPENCL_SHADER) {
13581357
mpm.add(new DisableLoopUnrollOnRetry());
13591358
}
13601359

0 commit comments

Comments
 (0)