We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37d7299 commit a356daeCopy full SHA for a356dae
llvm/lib/Analysis/RegionPass.cpp
@@ -15,6 +15,7 @@
15
#include "llvm/Analysis/RegionPass.h"
16
#include "llvm/IR/OptBisect.h"
17
#include "llvm/IR/PassTimingInfo.h"
18
+#include "llvm/IR/PrintPasses.h"
19
#include "llvm/IR/StructuralHash.h"
20
#include "llvm/Support/Debug.h"
21
#include "llvm/Support/Timer.h"
@@ -187,6 +188,8 @@ class PrintRegionPass : public RegionPass {
187
188
}
189
190
bool runOnRegion(Region *R, RGPassManager &RGM) override {
191
+ if (!isFunctionInPrintList(R->getEntry()->getParent()->getName()))
192
+ return false;
193
Out << Banner;
194
for (const auto *BB : R->blocks()) {
195
if (BB)
0 commit comments