"integer fractional block frequency representation."),
clEnumValEnd));
+static cl::opt<std::string> ViewMachineBlockFreqFuncName("view-mbfi-func-name",
+ cl::Hidden);
+
namespace llvm {
template <> struct GraphTraits<MachineBlockFrequencyInfo *> {
MBFI.reset(new ImplType);
MBFI->calculate(F, MBPI, MLI);
#ifndef NDEBUG
- if (ViewMachineBlockFreqPropagationDAG != GVDT_None) {
+ if (ViewMachineBlockFreqPropagationDAG != GVDT_None &&
+ (ViewMachineBlockFreqFuncName.empty() ||
+ F.getName().equals(ViewMachineBlockFreqFuncName))) {
view();
}
#endif