Repository navigation
JIT: Use matched inline args for inliner argument observations - #137630
Conversation
impMakeDiscretionaryInlineObservations walked the callee signature and the call's argument list in lockstep, skipping only the this pointer. Any other non-IL argument (generic context, async continuation, async context and so on) shifted the pairing, so observations such as "arg is a constant" were made against the wrong call argument. When inlining, use the argument pairing and signature types already computed by impInlineInitVars. When not inlining, only look at the signature. Co-authored-by: Copilot <[email protected]> Copilot-Session: de29f758-df50-40a9-bf70-a3978983794f
|
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch |
|
Azure Pipelines: Successfully started running 5 pipeline(s). 10 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
|
cc @dotnet/jit-contrib PTAL @EgorBo @AndyAyersMS Some substantial diffs now that we are basing the heuristics off of the right argument nodes. There's a lot of misses too in the cases where we may be doing more inlining. |
|
I wonder while we're at it, we should also fix #69280 And maybe improve the prescan analysis to be precise, not some double-slot heuristic. |
EgorBo
left a comment
There was a problem hiding this comment.
I guess it makes sense, since we're early in .NET 12.0 stage.
Makes sense, I can submit a follow-up PR to fix that as well. I think we should space these changes a bit to give the perf lab a chance to attribute the regressions. |
impMakeDiscretionaryInlineObservationswalked the callee signature and the call's argument list in lockstep, skipping only the this pointer. Any other non-IL argument (generic context, async continuation, async context and so on) shifted the pairing, so observations such as "arg is a constant" were made against the wrong call argument.When inlining, use the argument pairing and signature types already computed by
impInlineInitVars. When not inlining, only look at the signature.This was causing some spurious diffs in #137548 after I reordered some async arguments.