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

Side by Side Diff: src/IceCfgNode.cpp

Issue 1284493003: Subzero: Misc fixes/cleanup. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 years, 4 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/IceCompiler.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/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 653 matching lines...) Expand 10 before | Expand all | Expand 10 after
664 LivenessBV &LiveOut = Liveness->getLiveOut(this); 664 LivenessBV &LiveOut = Liveness->getLiveOut(this);
665 LiveBeginEndMap &MapBegin = *Liveness->getLiveBegin(this); 665 LiveBeginEndMap &MapBegin = *Liveness->getLiveBegin(this);
666 LiveBeginEndMap &MapEnd = *Liveness->getLiveEnd(this); 666 LiveBeginEndMap &MapEnd = *Liveness->getLiveEnd(this);
667 std::sort(MapBegin.begin(), MapBegin.end()); 667 std::sort(MapBegin.begin(), MapBegin.end());
668 std::sort(MapEnd.begin(), MapEnd.end()); 668 std::sort(MapEnd.begin(), MapEnd.end());
669 // Verify there are no duplicates. 669 // Verify there are no duplicates.
670 auto ComparePair = 670 auto ComparePair =
671 [](const LiveBeginEndMapEntry &A, const LiveBeginEndMapEntry &B) { 671 [](const LiveBeginEndMapEntry &A, const LiveBeginEndMapEntry &B) {
672 return A.first == B.first; 672 return A.first == B.first;
673 }; 673 };
674 (void)ComparePair;
674 assert(std::adjacent_find(MapBegin.begin(), MapBegin.end(), ComparePair) == 675 assert(std::adjacent_find(MapBegin.begin(), MapBegin.end(), ComparePair) ==
675 MapBegin.end()); 676 MapBegin.end());
676 assert(std::adjacent_find(MapEnd.begin(), MapEnd.end(), ComparePair) == 677 assert(std::adjacent_find(MapEnd.begin(), MapEnd.end(), ComparePair) ==
677 MapEnd.end()); 678 MapEnd.end());
678 679
679 LivenessBV LiveInAndOut = LiveIn; 680 LivenessBV LiveInAndOut = LiveIn;
680 LiveInAndOut &= LiveOut; 681 LiveInAndOut &= LiveOut;
681 682
682 // Iterate in parallel across the sorted MapBegin[] and MapEnd[]. 683 // Iterate in parallel across the sorted MapBegin[] and MapEnd[].
683 auto IBB = MapBegin.begin(), IEB = MapEnd.begin(); 684 auto IBB = MapBegin.begin(), IEB = MapEnd.begin();
(...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after
1276 InstIntrinsicCall *Inst = InstIntrinsicCall::create( 1277 InstIntrinsicCall *Inst = InstIntrinsicCall::create(
1277 Func, 5, Func->makeVariable(IceType_i64), RMWI64Name, Info->Info); 1278 Func, 5, Func->makeVariable(IceType_i64), RMWI64Name, Info->Info);
1278 Inst->addArg(AtomicRMWOp); 1279 Inst->addArg(AtomicRMWOp);
1279 Inst->addArg(Counter); 1280 Inst->addArg(Counter);
1280 Inst->addArg(One); 1281 Inst->addArg(One);
1281 Inst->addArg(OrderAcquireRelease); 1282 Inst->addArg(OrderAcquireRelease);
1282 Insts.push_front(Inst); 1283 Insts.push_front(Inst);
1283 } 1284 }
1284 1285
1285 } // end of namespace Ice 1286 } // end of namespace Ice
OLDNEW
« no previous file with comments | « no previous file | src/IceCompiler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698