[PATCH] D92625: Use isIgnored instead of checking pass name
Arthur Eubanks via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 3 18:38:56 PST 2020
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG0173eb0faf7b: Use isIgnored instead of checking pass name (authored by aeubanks).
Changed prior to commit:
https://reviews.llvm.org/D92625?vs=309420&id=309435#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D92625/new/
https://reviews.llvm.org/D92625
Files:
llvm/lib/Passes/StandardInstrumentations.cpp
Index: llvm/lib/Passes/StandardInstrumentations.cpp
===================================================================
--- llvm/lib/Passes/StandardInstrumentations.cpp
+++ llvm/lib/Passes/StandardInstrumentations.cpp
@@ -474,7 +474,7 @@
}
void PrintIRInstrumentation::printBeforePass(StringRef PassID, Any IR) {
- if (PassID.startswith("PassManager<") || PassID.contains("PassAdaptor<"))
+ if (isIgnored(PassID))
return;
// Saving Module for AfterPassInvalidated operations.
@@ -493,7 +493,7 @@
}
void PrintIRInstrumentation::printAfterPass(StringRef PassID, Any IR) {
- if (PassID.startswith("PassManager<") || PassID.contains("PassAdaptor<"))
+ if (isIgnored(PassID))
return;
if (!shouldPrintAfterPass(PassID))
@@ -511,7 +511,7 @@
if (!StoreModuleDesc || !shouldPrintAfterPass(PassName))
return;
- if (PassID.startswith("PassManager<") || PassID.contains("PassAdaptor<"))
+ if (isIgnored(PassID))
return;
const Module *M;
@@ -627,13 +627,9 @@
if (!isEnabled())
return;
- std::vector<StringRef> SpecialPasses = {"PassManager", "PassAdaptor"};
-
- PIC.registerShouldRunOptionalPassCallback(
- [this, SpecialPasses](StringRef PassID, Any IR) {
- return isSpecialPass(PassID, SpecialPasses) ||
- checkPass(PassID, getBisectDescription(IR));
- });
+ PIC.registerShouldRunOptionalPassCallback([this](StringRef PassID, Any IR) {
+ return isIgnored(PassID) || checkPass(PassID, getBisectDescription(IR));
+ });
}
void PrintPassInstrumentation::registerCallbacks(
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D92625.309435.patch
Type: text/x-patch
Size: 1564 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201204/2d186b08/attachment.bin>
More information about the llvm-commits
mailing list