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

Side by Side Diff: src/IceCfgNode.cpp

Issue 640713003: Subzero: Improve the output with the --timing-focus=xxx option. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: 80-col 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 | « src/IceCfg.cpp ('k') | src/IceGlobalContext.h » ('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/IceCfgNode.cpp - Basic block (node) implementation -----===// 1 //===- subzero/src/IceCfgNode.cpp - Basic block (node) 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 CfgNode class, including the complexities 10 // This file implements the CfgNode class, including the complexities
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 Variable *Var = llvm::cast<Variable>(I->getSrc(Src)); 386 Variable *Var = llvm::cast<Variable>(I->getSrc(Src));
387 InstNumberT InstNumber = I->getNumber(); 387 InstNumberT InstNumber = I->getNumber();
388 Liveness->addLiveRange(Var, InstNumber, InstNumber, 1); 388 Liveness->addLiveRange(Var, InstNumber, InstNumber, 1);
389 } 389 }
390 } 390 }
391 } 391 }
392 } 392 }
393 } 393 }
394 if (Mode != Liveness_Intervals) 394 if (Mode != Liveness_Intervals)
395 return; 395 return;
396 TimerMarker T1(TimerStack::TT_liveRangeCtor, Func);
396 397
397 SizeT NumVars = Liveness->getNumVarsInNode(this); 398 SizeT NumVars = Liveness->getNumVarsInNode(this);
398 SizeT NumGlobals = Liveness->getNumGlobalVars(); 399 SizeT NumGlobals = Liveness->getNumGlobalVars();
399 llvm::BitVector &LiveIn = Liveness->getLiveIn(this); 400 llvm::BitVector &LiveIn = Liveness->getLiveIn(this);
400 llvm::BitVector &LiveOut = Liveness->getLiveOut(this); 401 llvm::BitVector &LiveOut = Liveness->getLiveOut(this);
401 std::vector<InstNumberT> &LiveBegin = Liveness->getLiveBegin(this); 402 std::vector<InstNumberT> &LiveBegin = Liveness->getLiveBegin(this);
402 std::vector<InstNumberT> &LiveEnd = Liveness->getLiveEnd(this); 403 std::vector<InstNumberT> &LiveEnd = Liveness->getLiveEnd(this);
403 for (SizeT i = 0; i < NumVars; ++i) { 404 for (SizeT i = 0; i < NumVars; ++i) {
404 // Deal with the case where the variable is both live-in and 405 // Deal with the case where the variable is both live-in and
405 // live-out, but LiveEnd comes before LiveBegin. In this case, we 406 // live-out, but LiveEnd comes before LiveBegin. In this case, we
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
543 if (!First) 544 if (!First)
544 Str << ", "; 545 Str << ", ";
545 First = false; 546 First = false;
546 Str << "%" << I->getName(); 547 Str << "%" << I->getName();
547 } 548 }
548 Str << "\n"; 549 Str << "\n";
549 } 550 }
550 } 551 }
551 552
552 } // end of namespace Ice 553 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceCfg.cpp ('k') | src/IceGlobalContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698