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

Side by Side Diff: src/IceCfgNode.cpp

Issue 1481133002: Subzero. ARM32. Show FP lowering some love. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Addresses comments. Created 5 years 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
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 963 matching lines...) Expand 10 before | Expand all | Expand 10 after
974 if (ShouldReport && Var->hasReg()) { 974 if (ShouldReport && Var->hasReg()) {
975 // Don't report end of live range until the live count reaches 0. 975 // Don't report end of live range until the live count reaches 0.
976 SizeT NewCount = --LiveRegCount[Var->getRegNum()]; 976 SizeT NewCount = --LiveRegCount[Var->getRegNum()];
977 if (NewCount) 977 if (NewCount)
978 ShouldReport = false; 978 ShouldReport = false;
979 } 979 }
980 if (ShouldReport) { 980 if (ShouldReport) {
981 if (Printed) 981 if (Printed)
982 Str << ","; 982 Str << ",";
983 else 983 else
984 Str << " \t# END="; 984 Str << " \t@ END=";
985 Var->emit(Func); 985 Var->emit(Func);
986 Printed = true; 986 Printed = true;
987 } 987 }
988 } 988 }
989 return Printed; 989 return Printed;
990 } 990 }
991 991
992 void updateStats(Cfg *Func, const Inst *I) { 992 void updateStats(Cfg *Func, const Inst *I) {
993 if (!BuildDefs::dump()) 993 if (!BuildDefs::dump())
994 return; 994 return;
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
1407 InstIntrinsicCall *Inst = InstIntrinsicCall::create( 1407 InstIntrinsicCall *Inst = InstIntrinsicCall::create(
1408 Func, 5, Func->makeVariable(IceType_i64), RMWI64Name, Info->Info); 1408 Func, 5, Func->makeVariable(IceType_i64), RMWI64Name, Info->Info);
1409 Inst->addArg(AtomicRMWOp); 1409 Inst->addArg(AtomicRMWOp);
1410 Inst->addArg(Counter); 1410 Inst->addArg(Counter);
1411 Inst->addArg(One); 1411 Inst->addArg(One);
1412 Inst->addArg(OrderAcquireRelease); 1412 Inst->addArg(OrderAcquireRelease);
1413 Insts.push_front(Inst); 1413 Insts.push_front(Inst);
1414 } 1414 }
1415 1415
1416 } // end of namespace Ice 1416 } // end of namespace Ice
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698