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

Side by Side Diff: src/IceCfgNode.cpp

Issue 1380323003: Subzero: With -asm-verbose, make the predecessor list more compact. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: 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 | no next file » | 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 /// \file 10 /// \file
(...skipping 979 matching lines...) Expand 10 before | Expand all | Expand 10 after
990 if (DecorateAsm) { 990 if (DecorateAsm) {
991 constexpr bool IsLiveIn = true; 991 constexpr bool IsLiveIn = true;
992 emitRegisterUsage(Str, Func, this, IsLiveIn, LiveRegCount); 992 emitRegisterUsage(Str, Func, this, IsLiveIn, LiveRegCount);
993 if (getInEdges().size()) { 993 if (getInEdges().size()) {
994 Str << "\t\t\t\t# preds="; 994 Str << "\t\t\t\t# preds=";
995 bool First = true; 995 bool First = true;
996 for (CfgNode *I : getInEdges()) { 996 for (CfgNode *I : getInEdges()) {
997 if (!First) 997 if (!First)
998 Str << ","; 998 Str << ",";
999 First = false; 999 First = false;
1000 Str << I->getAsmName(); 1000 Str << "$" << I->getName();
1001 } 1001 }
1002 Str << "\n"; 1002 Str << "\n";
1003 } 1003 }
1004 if (getLoopNestDepth()) { 1004 if (getLoopNestDepth()) {
1005 Str << "\t\t\t\t# loop depth=" << getLoopNestDepth() << "\n"; 1005 Str << "\t\t\t\t# loop depth=" << getLoopNestDepth() << "\n";
1006 } 1006 }
1007 } 1007 }
1008 1008
1009 for (const Inst &I : Phis) { 1009 for (const Inst &I : Phis) {
1010 if (I.isDeleted()) 1010 if (I.isDeleted())
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
1368 InstIntrinsicCall *Inst = InstIntrinsicCall::create( 1368 InstIntrinsicCall *Inst = InstIntrinsicCall::create(
1369 Func, 5, Func->makeVariable(IceType_i64), RMWI64Name, Info->Info); 1369 Func, 5, Func->makeVariable(IceType_i64), RMWI64Name, Info->Info);
1370 Inst->addArg(AtomicRMWOp); 1370 Inst->addArg(AtomicRMWOp);
1371 Inst->addArg(Counter); 1371 Inst->addArg(Counter);
1372 Inst->addArg(One); 1372 Inst->addArg(One);
1373 Inst->addArg(OrderAcquireRelease); 1373 Inst->addArg(OrderAcquireRelease);
1374 Insts.push_front(Inst); 1374 Insts.push_front(Inst);
1375 } 1375 }
1376 1376
1377 } // end of namespace Ice 1377 } // end of namespace Ice
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698