blob: 10543db8c68234783ab21ce434627ea6c0eb65cc [file] [log] [blame]
Emily Bernierd0a1eb72015-03-24 16:35:39 -04001// 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_COMMON_OPERATOR_REDUCER_H_
6#define V8_COMPILER_COMMON_OPERATOR_REDUCER_H_
7
8#include "src/compiler/graph-reducer.h"
9
10namespace v8 {
11namespace internal {
12namespace compiler {
13
14// Performs strength reduction on nodes that have common operators.
15class CommonOperatorReducer FINAL : public Reducer {
16 public:
17 CommonOperatorReducer() {}
18 ~CommonOperatorReducer() FINAL {}
19
20 Reduction Reduce(Node* node) FINAL;
21};
22
23} // namespace compiler
24} // namespace internal
25} // namespace v8
26
27#endif // V8_COMPILER_COMMON_OPERATOR_REDUCER_H_