Index: src/IceRegAlloc.cpp |
diff --git a/src/IceRegAlloc.cpp b/src/IceRegAlloc.cpp |
index 79261238f7fa6a8385168df41d19df7d35bdffe0..e2dae8d80cddec7f7e5ea476bef987c70e818cba 100644 |
--- a/src/IceRegAlloc.cpp |
+++ b/src/IceRegAlloc.cpp |
@@ -50,7 +50,7 @@ bool overlapsDefs(const Cfg *Func, const Variable *Item, const Variable *Var) { |
void dumpDisableOverlap(const Cfg *Func, const Variable *Var, |
const char *Reason) { |
- if (!ALLOW_DUMP) |
+ if (!buildAllowsDump()) |
return; |
if (Func->isVerbose(IceV_LinearScan)) { |
VariablesMetadata *VMetadata = Func->getVMetadata(); |
@@ -68,7 +68,7 @@ void dumpDisableOverlap(const Cfg *Func, const Variable *Var, |
} |
void dumpLiveRange(const Variable *Var, const Cfg *Func) { |
- if (!ALLOW_DUMP) |
+ if (!buildAllowsDump()) |
return; |
Ostream &Str = Func->getContext()->getStrDump(); |
const static size_t BufLen = 30; |
@@ -265,7 +265,7 @@ void LinearScan::scan(const llvm::SmallBitVector &RegMaskFull, |
TimerMarker T(TimerStack::TT_linearScan, Func); |
assert(RegMaskFull.any()); // Sanity check |
GlobalContext *Ctx = Func->getContext(); |
- const bool Verbose = ALLOW_DUMP && Func->isVerbose(IceV_LinearScan); |
+ const bool Verbose = buildAllowsDump() && Func->isVerbose(IceV_LinearScan); |
if (Verbose) |
Ctx->lockStr(); |
Func->resetCurrentNode(); |
@@ -735,7 +735,7 @@ void LinearScan::scan(const llvm::SmallBitVector &RegMaskFull, |
// ======================== Dump routines ======================== // |
void LinearScan::dump(Cfg *Func) const { |
- if (!ALLOW_DUMP) |
+ if (!buildAllowsDump()) |
return; |
if (!Func->isVerbose(IceV_LinearScan)) |
return; |