-
Notifications
You must be signed in to change notification settings - Fork 14.9k
[PGO] Add llvm.loop.estimated_trip_count metadata #152775
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
jdenny-ornl
merged 27 commits into
main
from
users/jdenny-ornl/pgo-estimated-trip-count
Sep 11, 2025
Merged
Changes from 21 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
13d1fbb
[PGO] Add `llvm.loop.estimated_trip_count` metadata
jdenny-ornl db5920a
Merge branch 'main' into pgo-estimated-trip-count
jdenny-ornl 47fbe85
Add PGOEstimateTripCounts in more cases
jdenny-ornl f8097fb
Add unused initialization
jdenny-ornl 7b27203
Simplify some test changes
jdenny-ornl 4c4669a
Extend verify pass to cover new metadata
jdenny-ornl 0f40efd
Fix test for some builds
jdenny-ornl 2791a1c
Merge branch 'main' into pgo-estimated-trip-count
jdenny-ornl 6148922
Apply some small reviewer suggestions
jdenny-ornl 3a49b43
Attempt to fix windows pre-commit CI
jdenny-ornl 2f7daa8
Merge branch 'main' into pgo-estimated-trip-count
jdenny-ornl c627fc5
Merge branch 'main' into pgo-estimated-trip-count
jdenny-ornl f1fa8d9
Run update script on new test from last merge
jdenny-ornl 38ace1e
Reapply 3a18fe33f0763cd9276c99c276448412100f6270
jdenny-ornl 92ddaa0
Convert to function pass, avoid needless pass invalidation
jdenny-ornl a3e0d72
Fix layering violation
jdenny-ornl 67f22cd
Apply clang-format
jdenny-ornl f0ff2e2
Merge branch 'main' into pgo-estimated-trip-count
jdenny-ornl e7eb1fe
Merge branch 'main' into pgo-estimated-trip-count
jdenny-ornl 0973ab3
Merge branch 'main' into pgo-estimated-trip-count
jdenny-ornl 680bdc2
Remove PGOEstimateTripCountsPass and no-value form of metadata
jdenny-ornl 59cd184
Fix case where nested loops share latch
jdenny-ornl 5d00250
Merge branch 'main' into pgo-estimated-trip-count
jdenny-ornl 5719779
Remove redundant code
jdenny-ornl 98cab7b
Clarify recent comments some
jdenny-ornl b3831b6
Merge branch 'main' into pgo-estimated-trip-count
jdenny-ornl b8aed9b
Merge branch 'main' into pgo-estimated-trip-count
jdenny-ornl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the motivation for allowing "or smaller"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I set a maximum when I realized the current implementation cannot handle anything wider. For flexibility, I did not set a minimum, but I have no specific use case in mind. Do you prefer i32 only? I think that would be fine for me.