[PATCH] D147394: [NewPM] Use PassID instead of pass name
Prem Chintalapudi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 1 16:51:21 PDT 2023
pchintalapudi created this revision.
pchintalapudi added a reviewer: aeubanks.
Herald added a subscriber: hiraditya.
Herald added a project: All.
pchintalapudi requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
PrintIRInstrumentation::shouldPrintAfterPass accepts a pass ID instead of a pass name
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D147394
Files:
llvm/lib/Passes/StandardInstrumentations.cpp
Index: llvm/lib/Passes/StandardInstrumentations.cpp
===================================================================
--- llvm/lib/Passes/StandardInstrumentations.cpp
+++ llvm/lib/Passes/StandardInstrumentations.cpp
@@ -726,8 +726,7 @@
}
void PrintIRInstrumentation::printAfterPassInvalidated(StringRef PassID) {
- StringRef PassName = PIC->getPassNameForClassName(PassID);
- if (!shouldPrintAfterPass(PassName))
+ if (!shouldPrintAfterPass(PassID))
return;
if (isIgnored(PassID))
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147394.510278.patch
Type: text/x-patch
Size: 500 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230401/8230594f/attachment.bin>
More information about the llvm-commits
mailing list