Skip to content

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

Merged
steffenlarsen merged 1 commit into
intel:syclfrom
elizabethandrews:restrictopt
May 19, 2022
Merged

steffenlarsen merged 1 commit into
intel:syclfrom
elizabethandrews:restrictopt

Conversation

@elizabethandrews

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

ping

1 similar comment
@elizabethandrews

Copy link
Copy Markdown
Contributor Author

ping

@elizabethandrews

elizabethandrews commented May 19, 2022 •

Copy link
Copy Markdown
Contributor Author

@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