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

Side by Side 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, 2 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 unified diff | Download patch
« no previous file with comments | « no previous file | src/IceCompileServer.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 //===- subzero/src/IceCfg.cpp - Control flow graph implementation ---------===// 1 //===- subzero/src/IceCfg.cpp - Control flow graph implementation ---------===//
2 // 2 //
3 // The Subzero Code Generator 3 // The Subzero Code Generator
4 // 4 //
5 // This file is distributed under the University of Illinois Open Source 5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details. 6 // License. See LICENSE.TXT for details.
7 // 7 //
8 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===//
9 /// 9 ///
10 /// \file 10 /// \file
(...skipping 792 matching lines...) Expand 10 before | Expand all | Expand 10 after
803 } 803 }
804 resetCurrentNode(); 804 resetCurrentNode();
805 if (isVerbose(IceV_Liveness)) { 805 if (isVerbose(IceV_Liveness)) {
806 // Print summary info about variables 806 // Print summary info about variables
807 for (Variable *Var : Variables) { 807 for (Variable *Var : Variables) {
808 Str << "// multiblock="; 808 Str << "// multiblock=";
809 if (getVMetadata()->isTracked(Var)) 809 if (getVMetadata()->isTracked(Var))
810 Str << getVMetadata()->isMultiBlock(Var); 810 Str << getVMetadata()->isMultiBlock(Var);
811 else 811 else
812 Str << "?"; 812 Str << "?";
813 Str << " defs=";
814 bool FirstPrint = true;
815 if (VMetadata->getKind() != VMK_Uses) {
816 if (const Inst *FirstDef = VMetadata->getFirstDefinition(Var)) {
817 Str << FirstDef->getNumber();
818 FirstPrint = false;
819 }
820 }
821 if (VMetadata->getKind() == VMK_All) {
822 for (const Inst *Instr : VMetadata->getLatterDefinitions(Var)) {
823 if (!FirstPrint)
824 Str << ",";
825 Str << Instr->getNumber();
826 FirstPrint = false;
827 }
828 }
813 Str << " weight=" << Var->getWeight(this) << " "; 829 Str << " weight=" << Var->getWeight(this) << " ";
814 Var->dump(this); 830 Var->dump(this);
815 Str << " LIVE=" << Var->getLiveRange() << "\n"; 831 Str << " LIVE=" << Var->getLiveRange() << "\n";
816 } 832 }
817 } 833 }
818 // Print each basic block 834 // Print each basic block
819 for (CfgNode *Node : Nodes) 835 for (CfgNode *Node : Nodes)
820 Node->dump(this); 836 Node->dump(this);
821 if (isVerbose(IceV_Instructions)) 837 if (isVerbose(IceV_Instructions))
822 Str << "}\n"; 838 Str << "}\n";
823 } 839 }
824 840
825 } // end of namespace Ice 841 } // end of namespace Ice
OLDNEW
« 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