2003-10-23 00:03:49 +08:00
|
|
|
//===- CFGPrinter.cpp - DOT printer for the control flow graph ------------===//
|
2005-04-22 05:13:18 +08:00
|
|
|
//
|
2019-01-19 16:50:56 +08:00
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2005-04-22 05:13:18 +08:00
|
|
|
//
|
2003-10-23 00:03:49 +08:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
2018-10-09 12:30:23 +08:00
|
|
|
// This file defines a `-dot-cfg` analysis pass, which emits the
|
|
|
|
// `<prefix>.<fnname>.dot` file for each function in the program, with a graph
|
|
|
|
// of the CFG for that function. The default value for `<prefix>` is `cfg` but
|
|
|
|
// can be customized as needed.
|
2003-10-23 00:03:49 +08:00
|
|
|
//
|
|
|
|
// The other main feature of this file is that it implements the
|
|
|
|
// Function::viewCFG method, which is useful for debugging passes which operate
|
|
|
|
// on the CFG.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2004-04-27 00:27:08 +08:00
|
|
|
#include "llvm/Analysis/CFGPrinter.h"
|
2020-04-01 02:43:25 +08:00
|
|
|
#include "llvm/ADT/PostOrderIterator.h"
|
Sink all InitializePasses.h includes
This file lists every pass in LLVM, and is included by Pass.h, which is
very popular. Every time we add, remove, or rename a pass in LLVM, it
caused lots of recompilation.
I found this fact by looking at this table, which is sorted by the
number of times a file was changed over the last 100,000 git commits
multiplied by the number of object files that depend on it in the
current checkout:
recompiles touches affected_files header
342380 95 3604 llvm/include/llvm/ADT/STLExtras.h
314730 234 1345 llvm/include/llvm/InitializePasses.h
307036 118 2602 llvm/include/llvm/ADT/APInt.h
213049 59 3611 llvm/include/llvm/Support/MathExtras.h
170422 47 3626 llvm/include/llvm/Support/Compiler.h
162225 45 3605 llvm/include/llvm/ADT/Optional.h
158319 63 2513 llvm/include/llvm/ADT/Triple.h
140322 39 3598 llvm/include/llvm/ADT/StringRef.h
137647 59 2333 llvm/include/llvm/Support/Error.h
131619 73 1803 llvm/include/llvm/Support/FileSystem.h
Before this change, touching InitializePasses.h would cause 1345 files
to recompile. After this change, touching it only causes 550 compiles in
an incremental rebuild.
Reviewers: bkramer, asbirlea, bollu, jdoerfert
Differential Revision: https://reviews.llvm.org/D70211
2019-11-14 05:15:01 +08:00
|
|
|
#include "llvm/InitializePasses.h"
|
2009-10-18 12:09:11 +08:00
|
|
|
#include "llvm/Pass.h"
|
2019-11-15 07:15:48 +08:00
|
|
|
#include "llvm/Support/CommandLine.h"
|
2014-04-30 07:26:49 +08:00
|
|
|
#include "llvm/Support/FileSystem.h"
|
2020-02-22 08:36:09 +08:00
|
|
|
#include <algorithm>
|
|
|
|
|
2003-12-12 05:48:18 +08:00
|
|
|
using namespace llvm;
|
2003-11-12 06:41:34 +08:00
|
|
|
|
2020-04-01 02:43:25 +08:00
|
|
|
static cl::opt<std::string>
|
|
|
|
CFGFuncName("cfg-func-name", cl::Hidden,
|
|
|
|
cl::desc("The name of a function (or its substring)"
|
|
|
|
" whose CFG is viewed/printed."));
|
2018-07-26 01:22:12 +08:00
|
|
|
|
2018-10-09 12:30:23 +08:00
|
|
|
static cl::opt<std::string> CFGDotFilenamePrefix(
|
|
|
|
"cfg-dot-filename-prefix", cl::Hidden,
|
|
|
|
cl::desc("The prefix used for the CFG dot file names."));
|
|
|
|
|
2020-02-22 08:36:09 +08:00
|
|
|
static cl::opt<bool> HideUnreachablePaths("cfg-hide-unreachable-paths",
|
2020-04-01 02:43:25 +08:00
|
|
|
cl::init(false));
|
2020-02-22 08:36:09 +08:00
|
|
|
|
|
|
|
static cl::opt<bool> HideDeoptimizePaths("cfg-hide-deoptimize-paths",
|
2020-04-01 02:43:25 +08:00
|
|
|
cl::init(false));
|
|
|
|
|
2020-04-30 02:34:48 +08:00
|
|
|
static cl::opt<bool> ShowHeatColors("cfg-heat-colors", cl::init(true),
|
2020-04-01 02:43:25 +08:00
|
|
|
cl::Hidden,
|
|
|
|
cl::desc("Show heat colors in CFG"));
|
|
|
|
|
|
|
|
static cl::opt<bool> UseRawEdgeWeight("cfg-raw-weights", cl::init(false),
|
|
|
|
cl::Hidden,
|
|
|
|
cl::desc("Use raw weights for labels. "
|
|
|
|
"Use percentages as default."));
|
|
|
|
|
|
|
|
static cl::opt<bool>
|
|
|
|
ShowEdgeWeight("cfg-weights", cl::init(false), cl::Hidden,
|
|
|
|
cl::desc("Show edges labeled with weights"));
|
2020-02-22 08:36:09 +08:00
|
|
|
|
2020-04-07 00:53:10 +08:00
|
|
|
static void writeCFGToDotFile(Function &F, BlockFrequencyInfo *BFI,
|
2020-04-01 02:43:25 +08:00
|
|
|
BranchProbabilityInfo *BPI, uint64_t MaxFreq,
|
|
|
|
bool CFGOnly = false) {
|
2020-04-07 00:53:10 +08:00
|
|
|
std::string Filename =
|
|
|
|
(CFGDotFilenamePrefix + "." + F.getName() + ".dot").str();
|
|
|
|
errs() << "Writing '" << Filename << "'...";
|
|
|
|
|
|
|
|
std::error_code EC;
|
|
|
|
raw_fd_ostream File(Filename, EC, sys::fs::F_Text);
|
|
|
|
|
2020-04-01 02:43:25 +08:00
|
|
|
DOTFuncInfo CFGInfo(&F, BFI, BPI, MaxFreq);
|
|
|
|
CFGInfo.setHeatColors(ShowHeatColors);
|
|
|
|
CFGInfo.setEdgeWeights(ShowEdgeWeight);
|
|
|
|
CFGInfo.setRawEdgeWeights(UseRawEdgeWeight);
|
|
|
|
|
2020-04-07 00:53:10 +08:00
|
|
|
if (!EC)
|
2020-04-01 02:43:25 +08:00
|
|
|
WriteGraph(File, &CFGInfo, CFGOnly);
|
2020-04-07 00:53:10 +08:00
|
|
|
else
|
|
|
|
errs() << " error opening file for writing!";
|
|
|
|
errs() << "\n";
|
|
|
|
}
|
|
|
|
|
2020-04-27 02:22:16 +08:00
|
|
|
static void viewCFG(Function &F, const BlockFrequencyInfo *BFI,
|
|
|
|
const BranchProbabilityInfo *BPI, uint64_t MaxFreq,
|
2020-04-01 02:43:25 +08:00
|
|
|
bool CFGOnly = false) {
|
|
|
|
DOTFuncInfo CFGInfo(&F, BFI, BPI, MaxFreq);
|
|
|
|
CFGInfo.setHeatColors(ShowHeatColors);
|
|
|
|
CFGInfo.setEdgeWeights(ShowEdgeWeight);
|
|
|
|
CFGInfo.setRawEdgeWeights(UseRawEdgeWeight);
|
|
|
|
|
|
|
|
ViewGraph(&CFGInfo, "cfg." + F.getName(), CFGOnly);
|
2020-04-07 00:53:10 +08:00
|
|
|
}
|
|
|
|
|
2003-10-23 00:03:49 +08:00
|
|
|
namespace {
|
2020-04-01 02:43:25 +08:00
|
|
|
struct CFGViewerLegacyPass : public FunctionPass {
|
|
|
|
static char ID; // Pass identifcation, replacement for typeid
|
|
|
|
CFGViewerLegacyPass() : FunctionPass(ID) {
|
|
|
|
initializeCFGViewerLegacyPassPass(*PassRegistry::getPassRegistry());
|
|
|
|
}
|
|
|
|
|
|
|
|
bool runOnFunction(Function &F) override {
|
|
|
|
auto *BPI = &getAnalysis<BranchProbabilityInfoWrapperPass>().getBPI();
|
|
|
|
auto *BFI = &getAnalysis<BlockFrequencyInfoWrapperPass>().getBFI();
|
|
|
|
viewCFG(F, BFI, BPI, getMaxFreq(F, BFI));
|
|
|
|
return false;
|
|
|
|
}
|
2007-05-14 22:25:08 +08:00
|
|
|
|
2020-04-01 02:43:25 +08:00
|
|
|
void print(raw_ostream &OS, const Module * = nullptr) const override {}
|
2007-05-14 22:25:08 +08:00
|
|
|
|
2020-04-01 02:43:25 +08:00
|
|
|
void getAnalysisUsage(AnalysisUsage &AU) const override {
|
|
|
|
FunctionPass::getAnalysisUsage(AU);
|
|
|
|
AU.addRequired<BlockFrequencyInfoWrapperPass>();
|
|
|
|
AU.addRequired<BranchProbabilityInfoWrapperPass>();
|
|
|
|
AU.setPreservesAll();
|
|
|
|
}
|
|
|
|
};
|
2015-06-23 17:49:53 +08:00
|
|
|
}
|
2007-05-14 22:25:08 +08:00
|
|
|
|
2016-09-16 02:35:27 +08:00
|
|
|
char CFGViewerLegacyPass::ID = 0;
|
2020-04-01 02:43:25 +08:00
|
|
|
INITIALIZE_PASS(CFGViewerLegacyPass, "view-cfg", "View CFG of function", false,
|
|
|
|
true)
|
2016-09-16 02:35:27 +08:00
|
|
|
|
2020-04-01 02:43:25 +08:00
|
|
|
PreservedAnalyses CFGViewerPass::run(Function &F, FunctionAnalysisManager &AM) {
|
2020-04-07 00:53:10 +08:00
|
|
|
auto *BFI = &AM.getResult<BlockFrequencyAnalysis>(F);
|
|
|
|
auto *BPI = &AM.getResult<BranchProbabilityAnalysis>(F);
|
2020-04-01 02:43:25 +08:00
|
|
|
viewCFG(F, BFI, BPI, getMaxFreq(F, BFI));
|
2016-09-16 02:35:27 +08:00
|
|
|
return PreservedAnalyses::all();
|
|
|
|
}
|
|
|
|
|
2008-05-13 08:00:25 +08:00
|
|
|
namespace {
|
2020-04-01 02:43:25 +08:00
|
|
|
struct CFGOnlyViewerLegacyPass : public FunctionPass {
|
|
|
|
static char ID; // Pass identifcation, replacement for typeid
|
|
|
|
CFGOnlyViewerLegacyPass() : FunctionPass(ID) {
|
|
|
|
initializeCFGOnlyViewerLegacyPassPass(*PassRegistry::getPassRegistry());
|
|
|
|
}
|
|
|
|
|
|
|
|
bool runOnFunction(Function &F) override {
|
|
|
|
auto *BPI = &getAnalysis<BranchProbabilityInfoWrapperPass>().getBPI();
|
|
|
|
auto *BFI = &getAnalysis<BlockFrequencyInfoWrapperPass>().getBFI();
|
|
|
|
viewCFG(F, BFI, BPI, getMaxFreq(F, BFI), /*CFGOnly=*/true);
|
|
|
|
return false;
|
|
|
|
}
|
2007-05-14 22:25:08 +08:00
|
|
|
|
2020-04-01 02:43:25 +08:00
|
|
|
void print(raw_ostream &OS, const Module * = nullptr) const override {}
|
2007-05-14 22:25:08 +08:00
|
|
|
|
2020-04-01 02:43:25 +08:00
|
|
|
void getAnalysisUsage(AnalysisUsage &AU) const override {
|
|
|
|
FunctionPass::getAnalysisUsage(AU);
|
|
|
|
AU.addRequired<BlockFrequencyInfoWrapperPass>();
|
|
|
|
AU.addRequired<BranchProbabilityInfoWrapperPass>();
|
|
|
|
AU.setPreservesAll();
|
|
|
|
}
|
|
|
|
};
|
2015-06-23 17:49:53 +08:00
|
|
|
}
|
2007-05-14 22:25:08 +08:00
|
|
|
|
2016-09-16 02:35:27 +08:00
|
|
|
char CFGOnlyViewerLegacyPass::ID = 0;
|
|
|
|
INITIALIZE_PASS(CFGOnlyViewerLegacyPass, "view-cfg-only",
|
2010-10-08 06:25:06 +08:00
|
|
|
"View CFG of function (with no function bodies)", false, true)
|
2007-05-14 22:25:08 +08:00
|
|
|
|
2018-06-30 01:48:58 +08:00
|
|
|
PreservedAnalyses CFGOnlyViewerPass::run(Function &F,
|
|
|
|
FunctionAnalysisManager &AM) {
|
2020-04-07 00:53:10 +08:00
|
|
|
auto *BFI = &AM.getResult<BlockFrequencyAnalysis>(F);
|
|
|
|
auto *BPI = &AM.getResult<BranchProbabilityAnalysis>(F);
|
2020-04-01 02:43:25 +08:00
|
|
|
viewCFG(F, BFI, BPI, getMaxFreq(F, BFI), /*CFGOnly=*/true);
|
2016-09-16 02:35:27 +08:00
|
|
|
return PreservedAnalyses::all();
|
|
|
|
}
|
|
|
|
|
2008-05-13 08:00:25 +08:00
|
|
|
namespace {
|
2020-04-01 02:43:25 +08:00
|
|
|
struct CFGPrinterLegacyPass : public FunctionPass {
|
|
|
|
static char ID; // Pass identification, replacement for typeid
|
|
|
|
CFGPrinterLegacyPass() : FunctionPass(ID) {
|
|
|
|
initializeCFGPrinterLegacyPassPass(*PassRegistry::getPassRegistry());
|
|
|
|
}
|
|
|
|
|
|
|
|
bool runOnFunction(Function &F) override {
|
|
|
|
auto *BPI = &getAnalysis<BranchProbabilityInfoWrapperPass>().getBPI();
|
|
|
|
auto *BFI = &getAnalysis<BlockFrequencyInfoWrapperPass>().getBFI();
|
|
|
|
writeCFGToDotFile(F, BFI, BPI, getMaxFreq(F, BFI));
|
|
|
|
return false;
|
|
|
|
}
|
2003-10-23 00:03:49 +08:00
|
|
|
|
2020-04-01 02:43:25 +08:00
|
|
|
void print(raw_ostream &OS, const Module * = nullptr) const override {}
|
2005-04-22 05:13:18 +08:00
|
|
|
|
2020-04-01 02:43:25 +08:00
|
|
|
void getAnalysisUsage(AnalysisUsage &AU) const override {
|
|
|
|
FunctionPass::getAnalysisUsage(AU);
|
|
|
|
AU.addRequired<BlockFrequencyInfoWrapperPass>();
|
|
|
|
AU.addRequired<BranchProbabilityInfoWrapperPass>();
|
|
|
|
AU.setPreservesAll();
|
|
|
|
}
|
|
|
|
};
|
2015-06-23 17:49:53 +08:00
|
|
|
}
|
2003-10-23 00:03:49 +08:00
|
|
|
|
2016-09-16 02:35:27 +08:00
|
|
|
char CFGPrinterLegacyPass::ID = 0;
|
2020-04-01 02:43:25 +08:00
|
|
|
INITIALIZE_PASS(CFGPrinterLegacyPass, "dot-cfg",
|
|
|
|
"Print CFG of function to 'dot' file", false, true)
|
2003-12-12 05:48:18 +08:00
|
|
|
|
2018-06-30 01:48:58 +08:00
|
|
|
PreservedAnalyses CFGPrinterPass::run(Function &F,
|
|
|
|
FunctionAnalysisManager &AM) {
|
2020-04-07 00:53:10 +08:00
|
|
|
auto *BFI = &AM.getResult<BlockFrequencyAnalysis>(F);
|
|
|
|
auto *BPI = &AM.getResult<BranchProbabilityAnalysis>(F);
|
2020-04-01 02:43:25 +08:00
|
|
|
writeCFGToDotFile(F, BFI, BPI, getMaxFreq(F, BFI));
|
2016-09-16 02:35:27 +08:00
|
|
|
return PreservedAnalyses::all();
|
|
|
|
}
|
|
|
|
|
2008-05-13 08:00:25 +08:00
|
|
|
namespace {
|
2020-04-01 02:43:25 +08:00
|
|
|
struct CFGOnlyPrinterLegacyPass : public FunctionPass {
|
|
|
|
static char ID; // Pass identification, replacement for typeid
|
|
|
|
CFGOnlyPrinterLegacyPass() : FunctionPass(ID) {
|
|
|
|
initializeCFGOnlyPrinterLegacyPassPass(*PassRegistry::getPassRegistry());
|
|
|
|
}
|
|
|
|
|
|
|
|
bool runOnFunction(Function &F) override {
|
|
|
|
auto *BPI = &getAnalysis<BranchProbabilityInfoWrapperPass>().getBPI();
|
|
|
|
auto *BFI = &getAnalysis<BlockFrequencyInfoWrapperPass>().getBFI();
|
|
|
|
writeCFGToDotFile(F, BFI, BPI, getMaxFreq(F, BFI), /*CFGOnly=*/true);
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
void print(raw_ostream &OS, const Module * = nullptr) const override {}
|
|
|
|
|
|
|
|
void getAnalysisUsage(AnalysisUsage &AU) const override {
|
|
|
|
FunctionPass::getAnalysisUsage(AU);
|
|
|
|
AU.addRequired<BlockFrequencyInfoWrapperPass>();
|
|
|
|
AU.addRequired<BranchProbabilityInfoWrapperPass>();
|
|
|
|
AU.setPreservesAll();
|
|
|
|
}
|
|
|
|
};
|
2015-06-23 17:49:53 +08:00
|
|
|
}
|
2003-10-23 00:03:49 +08:00
|
|
|
|
2016-09-16 02:35:27 +08:00
|
|
|
char CFGOnlyPrinterLegacyPass::ID = 0;
|
|
|
|
INITIALIZE_PASS(CFGOnlyPrinterLegacyPass, "dot-cfg-only",
|
2020-04-01 02:43:25 +08:00
|
|
|
"Print CFG of function to 'dot' file (with no function bodies)",
|
|
|
|
false, true)
|
2008-05-13 08:00:25 +08:00
|
|
|
|
2018-06-30 01:48:58 +08:00
|
|
|
PreservedAnalyses CFGOnlyPrinterPass::run(Function &F,
|
|
|
|
FunctionAnalysisManager &AM) {
|
2020-04-07 00:53:10 +08:00
|
|
|
auto *BFI = &AM.getResult<BlockFrequencyAnalysis>(F);
|
|
|
|
auto *BPI = &AM.getResult<BranchProbabilityAnalysis>(F);
|
2020-04-01 02:43:25 +08:00
|
|
|
writeCFGToDotFile(F, BFI, BPI, getMaxFreq(F, BFI), /*CFGOnly=*/true);
|
2016-09-16 02:35:27 +08:00
|
|
|
return PreservedAnalyses::all();
|
|
|
|
}
|
|
|
|
|
2003-10-23 00:03:49 +08:00
|
|
|
/// viewCFG - This function is meant for use from the debugger. You can just
|
|
|
|
/// say 'call F->viewCFG()' and a ghostview window should pop up from the
|
|
|
|
/// program, displaying the CFG of the current function. This depends on there
|
|
|
|
/// being a 'dot' and 'gv' program in your path.
|
|
|
|
///
|
2020-04-27 02:22:16 +08:00
|
|
|
void Function::viewCFG() const { viewCFG(false, nullptr, nullptr); }
|
|
|
|
|
|
|
|
void Function::viewCFG(bool ViewCFGOnly, const BlockFrequencyInfo *BFI,
|
|
|
|
const BranchProbabilityInfo *BPI) const {
|
2018-07-26 01:22:12 +08:00
|
|
|
if (!CFGFuncName.empty() && !getName().contains(CFGFuncName))
|
2020-04-01 02:43:25 +08:00
|
|
|
return;
|
2020-04-27 02:22:16 +08:00
|
|
|
DOTFuncInfo CFGInfo(this, BFI, BPI, BFI ? getMaxFreq(*this, BFI) : 0);
|
|
|
|
ViewGraph(&CFGInfo, "cfg" + getName(), ViewCFGOnly);
|
2003-10-23 00:03:49 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/// viewCFGOnly - This function is meant for use from the debugger. It works
|
|
|
|
/// just like viewCFG, but it does not include the contents of basic blocks
|
2014-05-21 01:11:11 +08:00
|
|
|
/// into the nodes, just the label. If you are only interested in the CFG
|
|
|
|
/// this can make the graph smaller.
|
2003-10-23 00:03:49 +08:00
|
|
|
///
|
2020-04-27 02:22:16 +08:00
|
|
|
void Function::viewCFGOnly() const { viewCFGOnly(nullptr, nullptr); }
|
|
|
|
|
|
|
|
void Function::viewCFGOnly(const BlockFrequencyInfo *BFI,
|
|
|
|
const BranchProbabilityInfo *BPI) const {
|
|
|
|
viewCFG(true, BFI, BPI);
|
2003-10-23 00:03:49 +08:00
|
|
|
}
|
2004-04-27 00:27:08 +08:00
|
|
|
|
2020-04-01 02:43:25 +08:00
|
|
|
FunctionPass *llvm::createCFGPrinterLegacyPassPass() {
|
2016-09-16 02:35:27 +08:00
|
|
|
return new CFGPrinterLegacyPass();
|
2004-04-27 00:27:08 +08:00
|
|
|
}
|
|
|
|
|
2020-04-01 02:43:25 +08:00
|
|
|
FunctionPass *llvm::createCFGOnlyPrinterLegacyPassPass() {
|
2016-09-16 02:35:27 +08:00
|
|
|
return new CFGOnlyPrinterLegacyPass();
|
2004-04-27 00:27:08 +08:00
|
|
|
}
|
2018-06-30 01:48:58 +08:00
|
|
|
|
2020-04-07 00:53:10 +08:00
|
|
|
void DOTGraphTraits<DOTFuncInfo *>::computeHiddenNodes(const Function *F) {
|
2020-02-22 08:36:09 +08:00
|
|
|
auto evaluateBB = [&](const BasicBlock *Node) {
|
|
|
|
if (succ_begin(Node) == succ_end(Node)) {
|
|
|
|
const Instruction *TI = Node->getTerminator();
|
|
|
|
isHiddenBasicBlock[Node] =
|
2020-04-01 02:43:25 +08:00
|
|
|
(HideUnreachablePaths && isa<UnreachableInst>(TI)) ||
|
|
|
|
(HideDeoptimizePaths && Node->getTerminatingDeoptimizeCall());
|
2020-02-22 08:36:09 +08:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
isHiddenBasicBlock[Node] = std::all_of(
|
|
|
|
succ_begin(Node), succ_end(Node),
|
|
|
|
[this](const BasicBlock *BB) { return isHiddenBasicBlock[BB]; });
|
|
|
|
};
|
|
|
|
/// The post order traversal iteration is done to know the status of
|
|
|
|
/// isHiddenBasicBlock for all the successors on the current BB.
|
|
|
|
for_each(po_begin(&F->getEntryBlock()), po_end(&F->getEntryBlock()),
|
|
|
|
evaluateBB);
|
|
|
|
}
|
|
|
|
|
2020-04-07 00:53:10 +08:00
|
|
|
bool DOTGraphTraits<DOTFuncInfo *>::isNodeHidden(const BasicBlock *Node) {
|
2020-02-22 08:36:09 +08:00
|
|
|
// If both restricting flags are false, all nodes are displayed.
|
|
|
|
if (!HideUnreachablePaths && !HideDeoptimizePaths)
|
|
|
|
return false;
|
|
|
|
if (isHiddenBasicBlock.find(Node) == isHiddenBasicBlock.end())
|
|
|
|
computeHiddenNodes(Node->getParent());
|
|
|
|
return isHiddenBasicBlock[Node];
|
|
|
|
}
|