This is an archive of the discontinued LLVM Phabricator instance.

demangle OptFunction trace names
AcceptedPublic

Authored by Trass3r on Oct 11 2022, 3:48 AM.

Details

Summary

This improves consistency in the trace files as other entries are demangled too.
Fixes #45901.

Diff Detail

Unit TestsFailed

Event Timeline

Trass3r created this revision.Oct 11 2022, 3:48 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 11 2022, 3:48 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
Trass3r requested review of this revision.Oct 11 2022, 3:48 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 11 2022, 3:48 AM
Trass3r edited the summary of this revision. (Show Details)Oct 11 2022, 3:52 AM
Trass3r added a reviewer: thakis.

Is it possible to test this?

llvm/lib/IR/LegacyPassManager.cpp
1412

Please use a named capture list instead of [&}.

I don't know, are there any tests for all the other scopes?
There is a generic test for the functionality.

llvm/lib/IR/LegacyPassManager.cpp
1412
Trass3r updated this revision to Diff 466828.Oct 11 2022, 8:47 AM

explicit lambda capture and format

Trass3r marked an inline comment as done.Oct 11 2022, 8:49 AM

I don't know if there are tests. In any case, it's good to add one for this change, no? :)

Any pointers where that test would go and how to write it?

Trass3r updated this revision to Diff 466946.EditedOct 11 2022, 3:29 PM

@thakis found a suitable test where I could add this

Herald added a project: Restricted Project. · View Herald TranscriptOct 11 2022, 3:30 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript

Is the mode change on check-time-trace-sections.py intended? I did a count of python files under llvm-project and < 10% are 755. I'm not saying it is better one way or the other; I'm just ensuring it is intentional.

Yeah it was conscious at least. No strong opinion on that though.

This revision is now accepted and ready to land.Dec 2 2022, 7:20 AM
lebedev.ri requested changes to this revision.Dec 2 2022, 9:33 AM
lebedev.ri added a subscriber: lebedev.ri.

Old pass manager is dead. There is no point in making improvements to it.

This revision now requires changes to proceed.Dec 2 2022, 9:33 AM

Well last time I checked it this code was still in use. When is it going to be deleted?
Also the test has value to ensure the new pass manager emits these entries as before.

lebedev.ri resigned from this revision.Jan 12 2023, 4:59 PM

This review may be stuck/dead, consider abandoning if no longer relevant.
Removing myself as reviewer in attempt to clean dashboard.

This revision is now accepted and ready to land.Jan 12 2023, 4:59 PM
Trass3r updated this revision to Diff 488959.Jan 13 2023, 5:10 AM

I can only refer to my last comment, even in latest trunk that code is still active for the codegen passes.
But meanwhile I found the corresponding new code.