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

Side by Side Diff: src/compiler/store-store-elimination.h

Issue 2087483003: [compiler] Introduce a simple store-store elimination, disabled by default. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@p1
Patch Set: Created 4 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
OLDNEW
(Empty)
1 // Copyright 2016 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_STORE_STORE_ELIMINATION_H_
6 #define V8_COMPILER_STORE_STORE_ELIMINATION_H_
7
8 #include "src/compiler/common-operator.h"
9 #include "src/compiler/graph-reducer.h"
10 #include "src/compiler/js-graph.h"
11
12 namespace v8 {
13 namespace internal {
14 namespace compiler {
15
16 // Forward declarations.
17 class CommonOperatorBuilder;
18 class JSGraph;
19
20 class StoreStoreElimination final {
21 public:
22 StoreStoreElimination(JSGraph* js_graph, Zone* zone);
23 ~StoreStoreElimination();
24
25 static bool IsEligibleNode(Node* node);
26
27 void ReduceEligibleNode(Node* node);
28
29 private:
30 JSGraph* jsgraph() const { return jsgraph_; }
31 Zone* zone() const { return zone_; }
32
33 JSGraph* const jsgraph_;
34 Zone* const zone_;
35 };
36
37 } // namespace compiler
38 } // namespace internal
39 } // namespace v8
40
41 #endif // V8_COMPILER_STORE_STORE_ELIMINATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698