Skip to content

Commit abc9da6

Browse files
jgu222sys_zuul
authored andcommitted
FunctionControl=FLAG_FCALL_FORCE_SUBROUTINE was broken. This change
fixed it. Change-Id: Iee76b951e490768d1442992823efd944c247cb64
1 parent 9fe158e commit abc9da6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

IGC/Compiler/CISACodeGen/ShaderCodeGen.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -495,9 +495,8 @@ namespace IGC
495495
mpm.add(createLoopSimplifyPass());
496496
}
497497

498-
if (ctx.m_enableSubroutine ||
499-
ctx.m_enableFunctionPointer ||
500-
IGC_GET_FLAG_VALUE(FunctionControl) == FLAG_FCALL_FORCE_STACKCALL)
498+
if (ctx.enableFunctionCall()
499+
)
501500
{
502501
// Sort functions if subroutine/indirect fcall is enabled.
503502
mpm.add(llvm::createGlobalDCEPass());

0 commit comments

Comments
 (0)