Skip to content

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 elizabeth.andrews@intel.com

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 <elizabeth.andrews@intel.com>
@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 <elizabeth.andrews@intel.com>
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