Index: src/IceCfgNode.cpp |
diff --git a/src/IceCfgNode.cpp b/src/IceCfgNode.cpp |
index 07246a2c6291b208cb66ead12db26f1bee7bfa11..36ea1cfce9dc712813e8cdce9377efac5c55555a 100644 |
--- a/src/IceCfgNode.cpp |
+++ b/src/IceCfgNode.cpp |
@@ -811,6 +811,8 @@ namespace { |
void emitRegisterUsage(Ostream &Str, const Cfg *Func, const CfgNode *Node, |
bool IsLiveIn, std::vector<SizeT> &LiveRegCount) { |
+ if (!ALLOW_DUMP) |
+ return; |
Liveness *Liveness = Func->getLiveness(); |
const LivenessBV *Live; |
if (IsLiveIn) { |
@@ -841,6 +843,8 @@ void emitRegisterUsage(Ostream &Str, const Cfg *Func, const CfgNode *Node, |
void emitLiveRangesEnded(Ostream &Str, const Cfg *Func, const Inst *Instr, |
std::vector<SizeT> &LiveRegCount) { |
+ if (!ALLOW_DUMP) |
+ return; |
bool First = true; |
Variable *Dest = Instr->getDest(); |
if (Dest && Dest->hasReg()) |
@@ -886,6 +890,8 @@ void updateStats(Cfg *Func, const Inst *I) { |
} // end of anonymous namespace |
void CfgNode::emit(Cfg *Func) const { |
+ if (!ALLOW_DUMP) |
+ return; |
Func->setCurrentNode(this); |
Ostream &Str = Func->getContext()->getStrEmit(); |
Liveness *Liveness = Func->getLiveness(); |
@@ -943,6 +949,8 @@ void CfgNode::emitIAS(Cfg *Func) const { |
} |
void CfgNode::dump(Cfg *Func) const { |
+ if (!ALLOW_DUMP) |
+ return; |
Func->setCurrentNode(this); |
Ostream &Str = Func->getContext()->getStrDump(); |
Liveness *Liveness = Func->getLiveness(); |