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

Unified Diff: src/IceCfg.cpp

Issue 1381563004: Subzero: Fix a bug in register allocator overlap computation. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix the asserts() guard Created 5 years, 3 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 | « no previous file | src/IceCompileServer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceCfg.cpp
diff --git a/src/IceCfg.cpp b/src/IceCfg.cpp
index d89fa49a0d02bc570cb8faf4e8c9a347b8668297..4c58d50490c033da495149a457b157cb8c50d164 100644
--- a/src/IceCfg.cpp
+++ b/src/IceCfg.cpp
@@ -810,6 +810,22 @@ void Cfg::dump(const IceString &Message) {
Str << getVMetadata()->isMultiBlock(Var);
else
Str << "?";
+ Str << " defs=";
+ bool FirstPrint = true;
+ if (VMetadata->getKind() != VMK_Uses) {
+ if (const Inst *FirstDef = VMetadata->getFirstDefinition(Var)) {
+ Str << FirstDef->getNumber();
+ FirstPrint = false;
+ }
+ }
+ if (VMetadata->getKind() == VMK_All) {
+ for (const Inst *Instr : VMetadata->getLatterDefinitions(Var)) {
+ if (!FirstPrint)
+ Str << ",";
+ Str << Instr->getNumber();
+ FirstPrint = false;
+ }
+ }
Str << " weight=" << Var->getWeight(this) << " ";
Var->dump(this);
Str << " LIVE=" << Var->getLiveRange() << "\n";
« no previous file with comments | « no previous file | src/IceCompileServer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698