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

Side by Side Diff: src/compiler/loop-variable-optimizer.h

Issue 2222513002: [turbofan] Insert sigma nodes for loop variable backedge. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address comments Created 4 years, 4 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.cc ('k') | src/compiler/loop-variable-optimizer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_COMPILER_LOOP_VARIABLE_OPTIMIZER_H_ 5 #ifndef V8_COMPILER_LOOP_VARIABLE_OPTIMIZER_H_
6 #define V8_COMPILER_LOOP_VARIABLE_OPTIMIZER_H_ 6 #define V8_COMPILER_LOOP_VARIABLE_OPTIMIZER_H_
7 7
8 #include "src/zone-containers.h" 8 #include "src/zone-containers.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 void Run(); 61 void Run();
62 62
63 LoopVariableOptimizer(Graph* graph, CommonOperatorBuilder* common, 63 LoopVariableOptimizer(Graph* graph, CommonOperatorBuilder* common,
64 Zone* zone); 64 Zone* zone);
65 65
66 const ZoneMap<int, InductionVariable*>& induction_variables() { 66 const ZoneMap<int, InductionVariable*>& induction_variables() {
67 return induction_vars_; 67 return induction_vars_;
68 } 68 }
69 69
70 void ChangeToInductionVariablePhis(); 70 void ChangeToInductionVariablePhis();
71 void ChangeFromInductionVariablePhis(); 71 void ChangeToPhisAndInsertGuards();
72 72
73 private: 73 private:
74 const int kAssumedLoopEntryIndex = 0; 74 const int kAssumedLoopEntryIndex = 0;
75 const int kFirstBackedge = 1; 75 const int kFirstBackedge = 1;
76 76
77 class Constraint; 77 class Constraint;
78 class VariableLimits; 78 class VariableLimits;
79 79
80 void VisitBackedge(Node* from, Node* loop); 80 void VisitBackedge(Node* from, Node* loop);
81 void VisitNode(Node* node); 81 void VisitNode(Node* node);
(...skipping 21 matching lines...) Expand all
103 Zone* zone_; 103 Zone* zone_;
104 ZoneMap<int, const VariableLimits*> limits_; 104 ZoneMap<int, const VariableLimits*> limits_;
105 ZoneMap<int, InductionVariable*> induction_vars_; 105 ZoneMap<int, InductionVariable*> induction_vars_;
106 }; 106 };
107 107
108 } // namespace compiler 108 } // namespace compiler
109 } // namespace internal 109 } // namespace internal
110 } // namespace v8 110 } // namespace v8
111 111
112 #endif // V8_COMPILER_LOOP_VARIABLE_OPTIMIZER_H_ 112 #endif // V8_COMPILER_LOOP_VARIABLE_OPTIMIZER_H_
OLDNEW
« no previous file with comments | « src/compiler/common-operator.cc ('k') | src/compiler/loop-variable-optimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698