-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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: Remove fgRenumberBlocks
calls in loop opt phases
#110227
JIT: Remove fgRenumberBlocks
calls in loop opt phases
#110227
Conversation
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch |
@@ -5145,37 +5145,18 @@ BasicBlockVisit FlowGraphNaturalLoop::VisitLoopBlocks(TFunc func) | |||
template <typename TFunc> | |||
BasicBlockVisit FlowGraphNaturalLoop::VisitLoopBlocksLexical(TFunc func) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should likely just remove it. The usages are just for duplicating loop blocks, and those probably don't need to be duplicated lexically anymore.
No need to make the change here if you don't want to, I can do it separately.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it, I saw #110020 is introducing new call sites for it, so I decided to keep it around to avoid conflicts with that PR. I can remove it in one go once that PR is in.
Small diffs from the |
Follow-up to dotnet#110026. This required a small refactor of FlowGraphNaturalLoop::VisitLoopBlocksLexical to remove its bbNum checks.
Follow-up to #110227. In the few places where we still visit loop blocks in lexical order, just visit them in RPO instead.
Follow-up to #110026. This required a small refactor of
FlowGraphNaturalLoop::VisitLoopBlocksLexical
to remove itsbbNum
checks.