[S-TIR] Fix the ScheduleError from missing guard in CheckInline#19377
[S-TIR] Fix the ScheduleError from missing guard in CheckInline#19377tlopex merged 3 commits intoapache:mainfrom
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces a check in AutoInlineNode::CheckInline to prevent the inlining of root blocks by returning InlineType::kNoInline if the block's parent reference is null. This ensures that blocks without a parent scope are correctly identified as non-inlinable. I have no feedback to provide as no review comments were submitted.
|
The current guard That is not sufficient here: if a root block is wrapped in a I think the guard should mirror the logic in It would also be good to add a test where a root block is wrapped in a |
|
Thanks to @tlopex for the prompt reply and suggestions. 😄 |
Hi Commiters,
This PR is trying to fix issues #18380. Any suggestions would be appreciated if you are available.
Root Cause
The ScheduleError comes from a missing guard in CheckInline before calling
GetScopRootSolution
Skip Inline if this is the root block