chromium/v8/test/unittests/compiler/loop-peeling-unittest.cc

// Copyright 2015 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "src/compiler/loop-peeling.h"

#include "src/compiler/graph-visualizer.h"
#include "src/compiler/graph.h"
#include "src/compiler/machine-operator.h"
#include "src/compiler/node.h"
#include "test/unittests/compiler/graph-unittest.h"
#include "test/unittests/compiler/node-test-utils.h"
#include "testing/gmock-support.h"

AllOf;
BitEq;
Capture;
CaptureEq;

namespace v8 {
namespace internal {
namespace compiler {

struct While {};


// A helper for building branches.
struct Branch {};


// A helper for building counters attached to loops.
struct Counter {};


class LoopPeelingTest : public GraphTest {};


TEST_F(LoopPeelingTest, SimpleLoop) {}


TEST_F(LoopPeelingTest, SimpleLoopWithCounter) {}


TEST_F(LoopPeelingTest, SimpleNestedLoopWithCounter_peel_outer) {}


TEST_F(LoopPeelingTest, SimpleNestedLoopWithCounter_peel_inner) {}


TEST_F(LoopPeelingTest, SimpleInnerCounter_peel_inner) {}


TEST_F(LoopPeelingTest, TwoBackedgeLoop) {}


TEST_F(LoopPeelingTest, TwoBackedgeLoopWithPhi) {}


TEST_F(LoopPeelingTest, TwoBackedgeLoopWithCounter) {}

TEST_F(LoopPeelingTest, TwoExitLoop) {}

TEST_F(LoopPeelingTest, SimpleLoopWithUnmarkedExit) {}


}  // namespace compiler
}  // namespace internal
}  // namespace v8