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

Side by Side Diff: src/compiler/loop-peeling.h

Issue 816053002: [turbofan] First version of loop peeling. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 11 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/loop-analysis.cc ('k') | src/compiler/loop-peeling.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 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_LOOP_PEELING_H_
6 #define V8_COMPILER_LOOP_PEELING_H_
7
8 #include "src/compiler/loop-analysis.h"
9
10 namespace v8 {
11 namespace internal {
12 namespace compiler {
13
14 // Represents the output of peeling a loop, which is basically the mapping
15 // from the body of the loop to the corresponding nodes in the peeled
16 // iteration.
17 class PeeledIteration : public ZoneObject {
18 public:
19 // Maps {node} to its corresponding copy in the peeled iteration, if
20 // the node was part of the body of the loop. Returns {node} otherwise.
21 Node* map(Node* node);
22
23 protected:
24 PeeledIteration() {}
25 };
26
27 class CommonOperatorBuilder;
28
29 // Implements loop peeling.
30 class LoopPeeler {
31 public:
32 static PeeledIteration* Peel(Graph* graph, CommonOperatorBuilder* common,
33 LoopTree* loop_tree, LoopTree::Loop* loop,
34 Zone* tmp_zone);
35 };
36
37
38 } // namespace compiler
39 } // namespace internal
40 } // namespace v8
41
42 #endif // V8_COMPILER_LOOP_PEELING_H_
OLDNEW
« no previous file with comments | « src/compiler/loop-analysis.cc ('k') | src/compiler/loop-peeling.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698