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

Unified Diff: src/compiler/common-operator-reducer.h

Issue 1215623002: [turbofan] Add support for pushing returns into merges. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Use NodeProperties::GetControlInput. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/compiler/common-operator-reducer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/common-operator-reducer.h
diff --git a/src/compiler/common-operator-reducer.h b/src/compiler/common-operator-reducer.h
index 3c43bda455cf7963052f1ce5b46b63030c9591f4..8582d6b633f674575bf049d6f1569de17ccc6963 100644
--- a/src/compiler/common-operator-reducer.h
+++ b/src/compiler/common-operator-reducer.h
@@ -23,11 +23,7 @@ class CommonOperatorReducer final : public AdvancedReducer {
public:
CommonOperatorReducer(Editor* editor, Graph* graph,
CommonOperatorBuilder* common,
- MachineOperatorBuilder* machine)
- : AdvancedReducer(editor),
- graph_(graph),
- common_(common),
- machine_(machine) {}
+ MachineOperatorBuilder* machine);
~CommonOperatorReducer() final {}
Reduction Reduce(Node* node) final;
@@ -37,6 +33,7 @@ class CommonOperatorReducer final : public AdvancedReducer {
Reduction ReduceMerge(Node* node);
Reduction ReduceEffectPhi(Node* node);
Reduction ReducePhi(Node* node);
+ Reduction ReduceReturn(Node* node);
Reduction ReduceSelect(Node* node);
Reduction Change(Node* node, Operator const* op, Node* a);
@@ -45,11 +42,12 @@ class CommonOperatorReducer final : public AdvancedReducer {
Graph* graph() const { return graph_; }
CommonOperatorBuilder* common() const { return common_; }
MachineOperatorBuilder* machine() const { return machine_; }
+ Node* dead() const { return dead_; }
Graph* const graph_;
CommonOperatorBuilder* const common_;
MachineOperatorBuilder* const machine_;
- SetOncePointer<Node> dead_;
+ Node* const dead_;
};
} // namespace compiler
« no previous file with comments | « no previous file | src/compiler/common-operator-reducer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698