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

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

Issue 817243003: [turbofan] Introduce CommonOperatorReducer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « BUILD.gn ('k') | 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/load-elimination.h b/src/compiler/common-operator-reducer.h
similarity index 54%
copy from src/compiler/load-elimination.h
copy to src/compiler/common-operator-reducer.h
index 6917ce36d68682ef3dbf484c8e17a9d46bd014c2..10543db8c68234783ab21ce434627ea6c0eb65cc 100644
--- a/src/compiler/load-elimination.h
+++ b/src/compiler/common-operator-reducer.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef V8_COMPILER_LOAD_ELIMINATION_H_
-#define V8_COMPILER_LOAD_ELIMINATION_H_
+#ifndef V8_COMPILER_COMMON_OPERATOR_REDUCER_H_
+#define V8_COMPILER_COMMON_OPERATOR_REDUCER_H_
#include "src/compiler/graph-reducer.h"
@@ -11,19 +11,17 @@ namespace v8 {
namespace internal {
namespace compiler {
-class LoadElimination FINAL : public Reducer {
+// Performs strength reduction on nodes that have common operators.
+class CommonOperatorReducer FINAL : public Reducer {
public:
- LoadElimination() {}
- ~LoadElimination() FINAL;
+ CommonOperatorReducer() {}
+ ~CommonOperatorReducer() FINAL {}
Reduction Reduce(Node* node) FINAL;
-
- private:
- Reduction ReduceLoadField(Node* node);
};
} // namespace compiler
} // namespace internal
} // namespace v8
-#endif // V8_COMPILER_LOAD_ELIMINATION_H_
+#endif // V8_COMPILER_COMMON_OPERATOR_REDUCER_H_
« no previous file with comments | « BUILD.gn ('k') | src/compiler/common-operator-reducer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698