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

Side by Side Diff: src/compiler/control-reducer.h

Issue 1193833002: [turbofan] Proper dead code elimination as regular reducer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Renamed DeadControl to Dead. Created 5 years, 6 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/common-operator-reducer.cc ('k') | src/compiler/control-reducer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef V8_COMPILER_CONTROL_REDUCER_H_
6 #define V8_COMPILER_CONTROL_REDUCER_H_
7
8 namespace v8 {
9 namespace internal {
10
11 // Forward declarations.
12 class Zone;
13
14
15 namespace compiler {
16
17 // Forward declarations.
18 class JSGraph;
19 class CommonOperatorBuilder;
20 class Node;
21
22 class ControlReducer {
23 public:
24 // Perform branch folding and dead code elimination on the graph.
25 static void ReduceGraph(Zone* zone, JSGraph* graph,
26 int max_phis_for_select = 0);
27
28 // Reduces a single merge node and attached phis.
29 static Node* ReduceMerge(JSGraph* graph, Node* node,
30 int max_phis_for_select = 0);
31
32 // Testing interface.
33 static Node* ReduceIfNodeForTesting(JSGraph* graph, Node* node);
34 };
35 }
36 }
37 } // namespace v8::internal::compiler
38
39 #endif // V8_COMPILER_CONTROL_REDUCER_H_
OLDNEW
« no previous file with comments | « src/compiler/common-operator-reducer.cc ('k') | src/compiler/control-reducer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698