Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Unified Diff: src/IceRegAlloc.cpp

Issue 870653002: Subzero: Initial implementation of multithreaded translation. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Rebase Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/IceOperand.cpp ('k') | src/IceTargetLowering.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceRegAlloc.cpp
diff --git a/src/IceRegAlloc.cpp b/src/IceRegAlloc.cpp
index 5056bfd79079df0d24107635bbb0f5eb045b2da4..d1710059856519beab9718d9494a3a5ba555bb3a 100644
--- a/src/IceRegAlloc.cpp
+++ b/src/IceRegAlloc.cpp
@@ -52,7 +52,7 @@ void dumpDisableOverlap(const Cfg *Func, const Variable *Var,
const char *Reason) {
if (!ALLOW_DUMP)
return;
- if (Func->getContext()->isVerbose(IceV_LinearScan)) {
+ if (Func->isVerbose(IceV_LinearScan)) {
VariablesMetadata *VMetadata = Func->getVMetadata();
Ostream &Str = Func->getContext()->getStrDump();
Str << "Disabling Overlap due to " << Reason << " " << *Var
@@ -265,8 +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 && Ctx->isVerbose(IceV_LinearScan);
+ const bool Verbose = ALLOW_DUMP && Func->isVerbose(IceV_LinearScan);
if (Verbose)
Ctx->lockStr();
Func->resetCurrentNode();
@@ -738,7 +737,7 @@ void LinearScan::scan(const llvm::SmallBitVector &RegMaskFull,
void LinearScan::dump(Cfg *Func) const {
if (!ALLOW_DUMP)
return;
- if (!Func->getContext()->isVerbose(IceV_LinearScan))
+ if (!Func->isVerbose(IceV_LinearScan))
return;
Ostream &Str = Func->getContext()->getStrDump();
Func->resetCurrentNode();
« no previous file with comments | « src/IceOperand.cpp ('k') | src/IceTargetLowering.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698