This is an archive of the discontinued LLVM Phabricator instance.

[NewPM] Use PassID instead of pass name
ClosedPublic

Authored by pchintalapudi on Apr 1 2023, 4:51 PM.

Details

Summary

PrintIRInstrumentation::shouldPrintAfterPass accepts a pass ID instead of a pass name

Diff Detail

Event Timeline

pchintalapudi created this revision.Apr 1 2023, 4:51 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 1 2023, 4:51 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
pchintalapudi requested review of this revision.Apr 1 2023, 4:51 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 1 2023, 4:51 PM

lg, but can you add a test?

How do I go about adding a regression test for this? I have a simple reproducer here: https://godbolt.org/z/nEK139rEo

something along the lines of llvm/test/Other/loop-pass-printer.ll with the IR and opt command you have should be good

some test nits, otherwise lgtm
do you need me to land this for you?

llvm/test/Other/loop-print-after-pass-invalidated.ll
3
5

there's no DEL check prefix in the test?

also the added test fails according to the premerge checks

aeubanks accepted this revision.Apr 14 2023, 9:59 AM

lg with one more test fix

llvm/test/Other/loop-print-after-pass-invalidated.ll
3

this suggested fix is still relevant

This revision is now accepted and ready to land.Apr 14 2023, 9:59 AM

Simplify opt arguments

do you need me to land this for you?

Yes please,

Name: Prem Chintalapudi
Email: prem.chintalapudi@gmail.com

This revision was landed with ongoing or failed builds.Apr 14 2023, 5:58 PM
This revision was automatically updated to reflect the committed changes.