Lines Matching refs:phi
102 HPhi* phi = new (GetAllocator()) HPhi(GetAllocator(), 0, 0, DataType::Type::kInt32); in BuildLoop() local
103 loop_header_->AddPhi(phi); in BuildLoop()
104 phi->AddInput(graph_->GetIntConstant(lower)); // i = l in BuildLoop()
106 condition_ = new (GetAllocator()) HLessThan(phi, upper); // i < u in BuildLoop()
108 condition_ = new (GetAllocator()) HGreaterThan(phi, upper); // i > u in BuildLoop()
113 new (GetAllocator()) HAdd(DataType::Type::kInt32, phi, graph_->GetIntConstant(stride)); in BuildLoop()
115 phi->AddInput(increment_); in BuildLoop()
762 HInstruction* phi = condition_->InputAt(0); in TEST_F() local
766 range_.GetInductionRange(condition_, phi, x_, &v1, &v2, &needs_finite_test); in TEST_F()
772 range_.GetInductionRange(increment_, phi, x_, &v1, &v2, &needs_finite_test); in TEST_F()
782 EXPECT_TRUE(range_.CanGenerateRange(increment_, phi, &needs_finite_test, &needs_taken_test)); in TEST_F()
783 EXPECT_TRUE(range_.CanGenerateLastValue(phi)); in TEST_F()
788 HInstruction* last = range_.GenerateLastValue(phi, graph_, loop_preheader_); in TEST_F()
798 EXPECT_TRUE(range_.IsUnitStride(phi, phi, graph_, &offset)); in TEST_F()
814 HInstruction* phi = condition_->InputAt(0); in TEST_F() local
818 range_.GetInductionRange(condition_, phi, x_, &v1, &v2, &needs_finite_test); in TEST_F()
824 range_.GetInductionRange(increment_, phi, x_, &v1, &v2, &needs_finite_test); in TEST_F()
834 EXPECT_TRUE(range_.CanGenerateRange(increment_, phi, &needs_finite_test, &needs_taken_test)); in TEST_F()
835 EXPECT_TRUE(range_.CanGenerateLastValue(phi)); in TEST_F()
840 HInstruction* last = range_.GenerateLastValue(phi, graph_, loop_preheader_); in TEST_F()
854 EXPECT_FALSE(range_.IsUnitStride(phi, phi, graph_, &offset)); in TEST_F()
873 HInstruction* phi = condition_->InputAt(0); in TEST_F() local
876 range_.GetInductionRange(condition_, phi, x_, &v1, &v2, &needs_finite_test); in TEST_F()
882 range_.GetInductionRange(increment_, phi, x_, &v1, &v2, &needs_finite_test); in TEST_F()
895 EXPECT_FALSE(range_.CanGenerateRange(condition_, phi, &needs_finite_test, &needs_taken_test)); in TEST_F()
896 ASSERT_TRUE(range_.CanGenerateRange(increment_, phi, &needs_finite_test, &needs_taken_test)); in TEST_F()
901 range_.GenerateRange(increment_, phi, graph_, loop_preheader_, &lower, &upper); in TEST_F()
936 EXPECT_TRUE(range_.IsUnitStride(phi, phi, graph_, &offset)); in TEST_F()
955 HInstruction* phi = condition_->InputAt(0); in TEST_F() local
958 range_.GetInductionRange(condition_, phi, x_, &v1, &v2, &needs_finite_test); in TEST_F()
964 range_.GetInductionRange(increment_, phi, x_, &v1, &v2, &needs_finite_test); in TEST_F()
977 EXPECT_FALSE(range_.CanGenerateRange(condition_, phi, &needs_finite_test, &needs_taken_test)); in TEST_F()
978 ASSERT_TRUE(range_.CanGenerateRange(increment_, phi, &needs_finite_test, &needs_taken_test)); in TEST_F()
983 range_.GenerateRange(increment_, phi, graph_, loop_preheader_, &lower, &upper); in TEST_F()
1022 EXPECT_FALSE(range_.IsUnitStride(phi, phi, graph_, &offset)); in TEST_F()