Skip to content

Conversation

arsenm
Copy link
Contributor

@arsenm arsenm commented Mar 12, 2025

When using -print-before-pass-number, the result would still be
printed to stderr instead of the file. This was due to pre-filtering
cases where a temporary string for the filename prior to incrementing
the current pass number. I found the tracking of this partial filename string
confusing, so just defer that until the filename is really used.

The ugliest piece of this is IRFileDisplayName - this needs to be
computed on the original IR before before any invalidation.

…ss-number

When using -print-before-pass-number, the result would  still be
printed to stderr instead of the file. This was due to pre-filtering
cases where a temporary string for the filename prior to incrementing
the current pass number. I found the tracking of this partial filename string
confusing, so just defer that until the filename is really used.

The ugliest piece of this is IRFileDisplayName - this needs to be
computed on the original IR before before any invalidation.
Copy link
Contributor Author

arsenm commented Mar 12, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@arsenm arsenm added the llvm:core label Mar 12, 2025 — with Graphite App
@arsenm arsenm marked this pull request as ready for review March 12, 2025 15:47
@arsenm arsenm changed the title StandardInstrumentation: Fix behavior of -ir-dump-directory with -print-before-pass-number StandardInstrumentation: Fix -ir-dump-directory with -print-before-pass-number Mar 12, 2025
Copy link
Contributor

@NuriAmari NuriAmari left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for fixing!

@arsenm arsenm merged commit da3ee97 into main Mar 14, 2025
15 checks passed
@arsenm arsenm deleted the users/arsenm/fix-ir-dump-directory-with-print-before-pass-number branch March 14, 2025 15:55
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