[all-commits] [llvm/llvm-project] a85443: StandardInstrumentation: Fix -ir-dump-directory wi...
Matt Arsenault via All-commits
all-commits at lists.llvm.org
Wed Mar 12 08:46:22 PDT 2025
Branch: refs/heads/users/arsenm/fix-ir-dump-directory-with-print-before-pass-number
Home: https://github.com/llvm/llvm-project
Commit: a854430086c317c70054a9a6e106b5baf6fd531a
https://github.com/llvm/llvm-project/commit/a854430086c317c70054a9a6e106b5baf6fd531a
Author: Matt Arsenault <Matthew.Arsenault at amd.com>
Date: 2025-03-12 (Wed, 12 Mar 2025)
Changed paths:
M llvm/include/llvm/Passes/StandardInstrumentations.h
M llvm/lib/Passes/StandardInstrumentations.cpp
A llvm/test/Other/dump-before-after-pass-number.ll
M llvm/test/Other/dump-before-after.ll
Log Message:
-----------
StandardInstrumentation: Fix -ir-dump-directory with -print-before-pass-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.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list