File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -651,15 +651,15 @@ void CISA_IR_Builder::LinkTimeOptimization(
651
651
G4_Declare *replacedRetDcl = nullptr ;
652
652
653
653
for (auto &it : sgInvokeList) {
654
- bool inlining = (options & (1U << Linker_Inline));
655
- bool removeArgRet = (options & (1U << Linker_RemoveArgRet));
656
- bool removeStackArg = (options & (1U << Linker_RemoveStackArg));
657
- bool removeStackFrame = (options & (1U << Linker_RemoveStackFrame));
658
654
G4_INST *fcall = *it;
659
655
vASSERT (fcall->opcode () == G4_pseudo_fcall);
660
-
661
656
G4_Kernel *caller = GetCallerKernel (fcall);
662
657
G4_Kernel *callee = GetCalleeKernel (fcall);
658
+ bool inlining = (options & (1U << Linker_Inline));
659
+ bool removeArgRet = (options & (1U << Linker_RemoveArgRet));
660
+ bool removeStackArg = (options & (1U << Linker_RemoveStackArg)) && caller->fg .builder ->hasInt64Add ();
661
+ bool removeStackFrame = (options & (1U << Linker_RemoveStackFrame));
662
+
663
663
G4_INST *calleeLabel = *callee->fg .builder ->instList .begin ();
664
664
vISA_ASSERT (calleeLabel->isLabel () == true , " Entry inst is not a label" );
665
665
You can’t perform that action at this time.
0 commit comments