Skip to content

Commit

Permalink
Make DP emu func stackcall by default
Browse files Browse the repository at this point in the history
Previously, DP emu (integer one, slow) is subroutine call by default.
With this change, it is stackcall.
  • Loading branch information
jgu222 authored and igcbot committed Jun 25, 2023
1 parent d42b9a1 commit 0111984
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion IGC/Compiler/Optimizer/PreCompiledFuncImport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,8 @@ bool PreCompiledFuncImport::runOnModule(Module& M)
isDPCallFunc))
{
Func->addFnAttr(llvm::Attribute::NoInline);
if (isDPCallFunc && emuFC == FLAG_FCALL_FORCE_STACKCALL)
if (isDPCallFunc &&
(emuFC == FLAG_FCALL_DEFAULT || emuFC == FLAG_FCALL_FORCE_STACKCALL))
{
Func->addFnAttr("visaStackCall");
}
Expand Down

0 comments on commit 0111984

Please sign in to comment.