Skip to content

[AssignmentTracking][NFC] Cache interesting debug records and instructions #149514

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

OCHyams
Copy link
Contributor

@OCHyams OCHyams commented Jul 18, 2025

Rather than visit all instructions each iteration of the analysis, we can cache the interesting ones ahead of time while performing other setup related tasks.

Marginal performance improvement. Note in this compile-tim-tracker comparison I've enabled assignment tracking support with lto, which isn't the same as on main:
http://llvm-compile-time-tracker.com/compare.php?from=80d92fc648d0160e0bbd191ba67b0f05218d4b69&to=1a38acc6e758919bbce5a451b7fe39c89a134c01&stat=instructions%3Au

@OCHyams OCHyams requested review from jmorse and SLTozer July 18, 2025 13:43
// Process the instructions in "frames". A "frame" includes a single
// non-debug instruction followed any debug instructions before the
// next non-debug instruction. A pointer-int int value of 1 on an
// instruction means non-debug instructions follow (end of frame).
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

err, note to self, this comment has the bit value the wrong way around

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants