Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JIT: fix pred list maintenance during fgUpdateFlowGraph #56509

Merged
merged 1 commit into from
Jul 29, 2021

Conversation

AndyAyersMS
Copy link
Member

Handle case where a BBJ_COND block both falls through and branches to
another block, and we want to introduce a block to re-route the fall through.

Closes #56495.

Handle case where a BBJ_COND block both falls through and branches to
another block, and we want to introduce a block to re-route the fall through.

Closes dotnet#56495.
@dotnet-issue-labeler dotnet-issue-labeler bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Jul 29, 2021
@AndyAyersMS
Copy link
Member Author

cc @dotnet/jit-contrib

no spmi asm diffs.

fgAddRefPred(bFixup, bDest);
fgAddRefPred(bDestNext, bFixup);
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So ReplacePred should always be avoided and be replaced with a pair of RemoveRefPred + AddRefPred ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not necessarily, sometimes you want to replace all the references.

I find editing flow in the jit to be fairly complex in general, especially dealing with the fall through behavior. I have ideas on how to simplify this but not sure when/if we'll get to them.

@AndyAyersMS AndyAyersMS merged commit 705bbfd into dotnet:main Jul 29, 2021
@AndyAyersMS AndyAyersMS deleted the FixFlowOptPredListIssue branch July 29, 2021 15:53
@ghost ghost locked as resolved and limited conversation to collaborators Aug 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JIT: flow opts does an incorrect pred list update
3 participants