Skip to content

[BOLT][NFC] Simplify YAMLProfileWriter::convert #82129

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

Conversation

aaupov
Copy link
Contributor

@aaupov aaupov commented Feb 17, 2024

Use getAnnotationWithDefault instead of testing if the annotation is
set. If the default value is used, and CSI.Count is set to zero, the
target is discarded by a check below.

Test Plan: NFC

aaupov and others added 2 commits February 17, 2024 12:47
Created using spr 1.3.4
@aaupov aaupov changed the base branch from users/aaupov/spr/main.boltnfc-simplify-yamlprofilewriterconvert to main February 29, 2024 11:57
@aaupov aaupov changed the base branch from main to users/aaupov/spr/main.boltnfc-simplify-yamlprofilewriterconvert March 20, 2024 21:20
@aaupov aaupov changed the base branch from users/aaupov/spr/main.boltnfc-simplify-yamlprofilewriterconvert to main March 20, 2024 21:36
Created using spr 1.3.4
@aaupov aaupov merged commit de0abc0 into main Mar 20, 2024
@aaupov aaupov deleted the users/aaupov/spr/boltnfc-simplify-yamlprofilewriterconvert branch March 20, 2024 21:39
chencha3 pushed a commit to chencha3/llvm-project that referenced this pull request Mar 23, 2024
Use `getAnnotationWithDefault` instead of testing if the annotation is
set. If the default value is used, and `CSI.Count` is set to zero, the
target is discarded by a check below.

Test Plan: NFC

Reviewers: maksfb, dcci, rafaelauler, ayermolo

Reviewed By: ayermolo

Pull Request: llvm#82129
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.

2 participants