chromium/v8/test/unittests/compiler/value-numbering-reducer-unittest.cc

// Copyright 2014 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/value-numbering-reducer.h"

#include <limits>

#include "src/compiler/graph.h"
#include "src/compiler/node.h"
#include "src/compiler/operator.h"
#include "test/unittests/test-utils.h"

namespace v8 {
namespace internal {
namespace compiler {
namespace value_numbering_reducer_unittest {

struct TestOperator : public Operator {};


static const TestOperator kOp0(0, Operator::kIdempotent, 0, 1);
static const TestOperator kOp1(1, Operator::kIdempotent, 1, 1);


class ValueNumberingReducerTest : public TestWithZone {};


TEST_F(ValueNumberingReducerTest, AllInputsAreChecked) {}


TEST_F(ValueNumberingReducerTest, DeadNodesAreNeverReturned) {}


TEST_F(ValueNumberingReducerTest, OnlyEliminatableNodesAreReduced) {}


TEST_F(ValueNumberingReducerTest, OperatorEqualityNotIdentity) {}


TEST_F(ValueNumberingReducerTest, SubsequentReductionsYieldTheSameNode) {}


TEST_F(ValueNumberingReducerTest, WontReplaceNodeWithItself) {}

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