Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Conversation

AndyAyersMS
Copy link
Member

The inliner currently will record detailed data about the last successful
inline performed (given a build with DEBUG or INLINE_DATA defined).
However, for purposes of inline profitability analysis we might be more
interested in the data from an earlier inline.

This change creates a mechanism where the replay log can flag one inline
per method as the target of data collection. The inliner checks for this
attribute during replay and captures that inline's data.

The inliner currently will record detailed data about the last successful
inline performed (given a build with DEBUG or INLINE_DATA defined).
However, for purposes of inline profitability analysis we might be more
interested in the data from an earlier inline.

This change creates a mechanism where the replay log can flag one inline
per method as the target of data collection. The inliner checks for this
attribute during replay and captures that inline's data.
@AndyAyersMS
Copy link
Member Author

AndyAyersMS commented Jul 12, 2016

@kyulee PTAL
cc @dotnet/jit-contrib

This helps fix a bug in the inline profitability data collection -- the collection process and the jit were not always synced up on which inline was the target of collection. Briefly, the exploration proceeds breadth-first but jit always inlines depth-first. So each side had its own notion of the "last" inline and these notions would not always coincide. Now the exploration process can be explicit about which inline is under investigation.

Hopefully this will lead to better quality data...

@kyulee1
Copy link

kyulee1 commented Jul 12, 2016

LGTM

@AndyAyersMS AndyAyersMS merged commit e536d7a into dotnet:master Jul 13, 2016
@AndyAyersMS AndyAyersMS deleted the FixDataCollection branch July 13, 2016 01:06
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
…tion

Inliner: Update data collection by targeting a single inline

Commit migrated from dotnet/coreclr@e536d7a
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants