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