v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
simplify-tf-loops.h
Go to the documentation of this file.
1// Copyright 2022 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_TURBOSHAFT_SIMPLIFY_TF_LOOPS_H_
6#define V8_COMPILER_TURBOSHAFT_SIMPLIFY_TF_LOOPS_H_
7
9
10namespace v8::internal::compiler {
11
12class MachineGraph;
13
14// Constrain loop nodes to have at most two inputs, by introducing additional
15// merges as needed.
16class SimplifyTFLoops final : public AdvancedReducer {
17 public:
19 : AdvancedReducer(editor), mcgraph_(mcgraph) {}
20
21 const char* reducer_name() const override { return "SimplifyTFLoops"; }
22
23 Reduction Reduce(Node* node) final;
24
25 private:
27};
28
29} // namespace v8::internal::compiler
30
31#endif // V8_COMPILER_TURBOSHAFT_SIMPLIFY_TF_LOOPS_H_
SimplifyTFLoops(Editor *editor, MachineGraph *mcgraph)
const char * reducer_name() const override