#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 { … };
struct Branch { … };
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) { … }
}
}
}