Skip to content

Loop alignment: Handle blocks added in loop as part of split edges of LSRA - #55047

Merged
kunalspathak merged 4 commits into
dotnet:mainfrom
kunalspathak:loopalign-splitedge
Jul 8, 2021
Merged

Loop alignment: Handle blocks added in loop as part of split edges of LSRA#55047
kunalspathak merged 4 commits into
dotnet:mainfrom
kunalspathak:loopalign-splitedge

Conversation

@kunalspathak

@kunalspathakkunalspathak commented Jul 1, 2021

Copy link
Copy Markdown
Contributor

If there are new blocks added by LSRA that modifies the flow of blocks that are in loop, then make sure that we do not align such
loops if they intersect with the last aligned loop.

Fixes some manifestation of #47094.

If there are new blocks added by LSRA and modifies the flow of
blocks that are in loop, then make sure that we do not align such
loops if they intersect with last aligned loop.
@ghostghost added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Jul 1, 2021
@kunalspathak
kunalspathak marked this pull request as ready for review July 2, 2021 16:50
@kunalspathak

Copy link
Copy Markdown
ContributorAuthor

@dotnet/jit-contrib

@kunalspathakkunalspathak changed the title Handle blocks added in loop as part of split edges of LSRALoop alignment: Handle blocks added in loop as part of split edges of LSRAJul 2, 2021

@BruceForstallBruceForstall left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Any asm diffs?

Comment threadsrc/coreclr/jit/emit.cpp Outdated
@kunalspathak

Copy link
Copy Markdown
ContributorAuthor

Any asm diffs?

No asm diffs. The scenario mainly come in jitstressregs mode where we end up adding new blocks for resolution.

@ghost

ghost commented Jul 8, 2021

Copy link
Copy Markdown

Hello @kunalspathak!

Because this pull request has the auto-merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@kunalspathak

Copy link
Copy Markdown
ContributorAuthor

Formatting errors will be addressed in #55320

@kunalspathak

Copy link
Copy Markdown
ContributorAuthor

One of the failure is #55315

@kunalspathak
kunalspathak merged commit b2a5499 into dotnet:mainJul 8, 2021
@ghostghost locked as resolved and limited conversation to collaborators Aug 7, 2021
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-CodeGen-coreclrCLR 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.

2 participants

@kunalspathak@BruceForstall