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

Side by Side Diff: src/compiler/graph-trimmer.cc

Issue 2123283006: [turbofan] Renamed tracing flags for TurboFan reducers and graph trimmer (Closed) Base URL: https://chromium.googlesource.com/v8/v8@master
Patch Set: Renamed tracing flags for TurboFan reducers and graph trimmer Created 4 years, 5 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/compiler/graph-reducer.cc ('k') | src/flag-definitions.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 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/compiler/graph-trimmer.h" 5 #include "src/compiler/graph-trimmer.h"
6 6
7 #include "src/compiler/graph.h" 7 #include "src/compiler/graph.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 15 matching lines...) Expand all
26 for (size_t i = 0; i < live_.size(); ++i) { 26 for (size_t i = 0; i < live_.size(); ++i) {
27 Node* const live = live_[i]; 27 Node* const live = live_[i];
28 for (Node* const input : live->inputs()) MarkAsLive(input); 28 for (Node* const input : live->inputs()) MarkAsLive(input);
29 } 29 }
30 // Remove dead->live edges. 30 // Remove dead->live edges.
31 for (Node* const live : live_) { 31 for (Node* const live : live_) {
32 DCHECK(IsLive(live)); 32 DCHECK(IsLive(live));
33 for (Edge edge : live->use_edges()) { 33 for (Edge edge : live->use_edges()) {
34 Node* const user = edge.from(); 34 Node* const user = edge.from();
35 if (!IsLive(user)) { 35 if (!IsLive(user)) {
36 if (FLAG_trace_turbo_reduction) { 36 if (FLAG_trace_turbo_trimming) {
37 OFStream os(stdout); 37 OFStream os(stdout);
38 os << "DeadLink: " << *user << "(" << edge.index() << ") -> " << *live 38 os << "DeadLink: " << *user << "(" << edge.index() << ") -> " << *live
39 << std::endl; 39 << std::endl;
40 } 40 }
41 edge.UpdateTo(nullptr); 41 edge.UpdateTo(nullptr);
42 } 42 }
43 } 43 }
44 } 44 }
45 } 45 }
46 46
47 } // namespace compiler 47 } // namespace compiler
48 } // namespace internal 48 } // namespace internal
49 } // namespace v8 49 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/graph-reducer.cc ('k') | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698