-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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: Add fgRedirectTrueEdge, fgRedirectFalseEdge #99561
Conversation
Diffs are quite big, though the bulk of them seem to come from a few collections. I'll dig into these locally. |
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.
Code LGTM. Left some notes on comments.
@@ -449,6 +449,84 @@ void Compiler::fgRedirectTargetEdge(BasicBlock* block, BasicBlock* newTarget) | |||
newTarget->bbRefs++; | |||
} | |||
|
|||
void Compiler::fgRedirectTrueEdge(BasicBlock* block, BasicBlock* newTarget) |
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.
Please add a header comment block for this method
assert(newTarget->checkPredListOrder()); | ||
} | ||
|
||
void Compiler::fgRedirectFalseEdge(BasicBlock* block, BasicBlock* newTarget) |
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.
Please add a header comment block for this method
src/coreclr/jit/fgflow.cpp
Outdated
|
||
newTarget->bbRefs++; | ||
|
||
// Pred list of target should (stilL) be ordered |
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.
// Pred list of target should (stilL) be ordered | |
// Pred list of target should (still) be ordered |
src/coreclr/jit/fgflow.cpp
Outdated
|
||
newTarget->bbRefs++; | ||
|
||
// Pred list of target should (stilL) be ordered |
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.
// Pred list of target should (stilL) be ordered | |
// Pred list of target should (still) be ordered |
@AndyAyersMS thanks for the review -- I incorporated your feedback. |
Follow-up to #99362. Adds helper methods for redirecting BBJ_COND blocks' true/false targets to new successors while reusing the existing flow edge.
cc @dotnet/jit-contrib, @AndyAyersMS PTAL. This may conflict with #99541; I'm ok with waiting for that to be merged first.