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

Side by Side Diff: src/IceCfg.cpp

Issue 597003004: Subzero: Automatically infer regalloc preferences and overlap. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review changes Created 6 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/IceCfgNode.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 // This file implements the Cfg class, including constant pool 10 // This file implements the Cfg class, including constant pool
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 for (VarList::const_iterator I = Variables.begin(), E = Variables.end(); 370 for (VarList::const_iterator I = Variables.begin(), E = Variables.end();
371 I != E; ++I) { 371 I != E; ++I) {
372 Variable *Var = *I; 372 Variable *Var = *I;
373 Str << "// multiblock="; 373 Str << "// multiblock=";
374 if (getVMetadata()->isTracked(Var)) 374 if (getVMetadata()->isTracked(Var))
375 Str << getVMetadata()->isMultiBlock(Var); 375 Str << getVMetadata()->isMultiBlock(Var);
376 else 376 else
377 Str << "?"; 377 Str << "?";
378 Str << " weight=" << Var->getWeight() << " "; 378 Str << " weight=" << Var->getWeight() << " ";
379 Var->dump(this); 379 Var->dump(this);
380 if (Variable *Pref = Var->getPreferredRegister()) {
381 Str << " pref=";
382 Pref->dump(this);
383 if (Var->getRegisterOverlap())
384 Str << ",overlap";
385 Str << " ";
386 }
387 Str << " LIVE=" << Var->getLiveRange() << "\n"; 380 Str << " LIVE=" << Var->getLiveRange() << "\n";
388 } 381 }
389 } 382 }
390 // Print each basic block 383 // Print each basic block
391 for (NodeList::const_iterator I = Nodes.begin(), E = Nodes.end(); I != E; 384 for (NodeList::const_iterator I = Nodes.begin(), E = Nodes.end(); I != E;
392 ++I) { 385 ++I) {
393 (*I)->dump(this); 386 (*I)->dump(this);
394 } 387 }
395 if (getContext()->isVerbose(IceV_Instructions)) { 388 if (getContext()->isVerbose(IceV_Instructions)) {
396 Str << "}\n"; 389 Str << "}\n";
397 } 390 }
398 } 391 }
399 392
400 } // end of namespace Ice 393 } // end of namespace Ice
OLDNEW
« no previous file with comments | « no previous file | src/IceCfgNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698