Skip to content

[SYCL] Restrict collection of information for optimization record #6170

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

Merged
merged 1 commit into from
May 19, 2022

Conversation

elizabethandrews
Copy link
Contributor

Collect information for optimization record only if the optmization
record is saved by user (i.e. -fsave-optimization-record or
-opt-record-file is passed). This patch prevents unecessary calls
to opt-report handlers when not required.

I couldn't think of a way to add a test for this since there is no
change in output. Information is collected when the flag is passed
and emitted into optimization record. Information is no longer
collected when there is no optimization record.

This is a follow up to #3492
and #3730

Signed-off-by: Elizabeth Andrews [email protected]

Collect information for optimization record only if the optmization
record is saved by user (i.e. -fsave-optimization-record or
-opt-record-file is passed). This patch prevents unecessary calls
to opt-report handlers when not required.

I couldn't think of a way to add a test for this since there is no
change in output. Information is collected when the flag is passed
and emitted into optimization record. Information is no longer
collected when there is no optimization record.

This is a follow up to intel#3492
and intel#3730

Signed-off-by: Elizabeth Andrews <[email protected]>
@elizabethandrews elizabethandrews requested review from a team as code owners May 18, 2022 15:13
@elizabethandrews
Copy link
Contributor Author

ping

1 similar comment
@elizabethandrews
Copy link
Contributor Author

ping

@elizabethandrews
Copy link
Contributor Author

elizabethandrews commented May 19, 2022

@intel/llvm-gatekeepers PR is ready for review and merge

@steffenlarsen steffenlarsen merged commit cb94c80 into intel:sycl May 19, 2022
yinyangsx pushed a commit to yinyangsx/llvm that referenced this pull request May 25, 2022
…tel#6170)

Collect information for optimization record only if the optmization
record is saved by user (i.e. -fsave-optimization-record or
-opt-record-file is passed). This patch prevents unecessary calls
to opt-report handlers when not required.

I couldn't think of a way to add a test for this since there is no
change in output. Information is collected when the flag is passed
and emitted into optimization record. Information is no longer
collected when there is no optimization record.

This is a follow up to intel#3492
and intel#3730

Signed-off-by: Elizabeth Andrews <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants