/third_party/skia/third_party/externals/spirv-tools/test/opt/loop_optimizations/ |
D | dependence_analysis_helpers.cpp | 746 analysis.GetLowerBound(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST() 749 analysis.GetUpperBound(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST() 753 analysis.GetTripCount(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST() 772 analysis.GetLowerBound(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST() 775 analysis.GetUpperBound(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST() 779 analysis.GetTripCount(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST() 798 analysis.GetLowerBound(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST() 801 analysis.GetUpperBound(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST() 805 analysis.GetTripCount(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST() 824 analysis.GetLowerBound(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST() [all …]
|
/third_party/spirv-tools/test/opt/loop_optimizations/ |
D | dependence_analysis_helpers.cpp | 746 analysis.GetLowerBound(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST() 749 analysis.GetUpperBound(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST() 753 analysis.GetTripCount(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST() 772 analysis.GetLowerBound(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST() 775 analysis.GetUpperBound(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST() 779 analysis.GetTripCount(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST() 798 analysis.GetLowerBound(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST() 801 analysis.GetUpperBound(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST() 805 analysis.GetTripCount(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST() 824 analysis.GetLowerBound(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/opt/loop_optimizations/ |
D | dependence_analysis_helpers.cpp | 746 analysis.GetLowerBound(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST() 749 analysis.GetUpperBound(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST() 753 analysis.GetTripCount(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST() 772 analysis.GetLowerBound(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST() 775 analysis.GetUpperBound(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST() 779 analysis.GetTripCount(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST() 798 analysis.GetLowerBound(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST() 801 analysis.GetUpperBound(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST() 805 analysis.GetTripCount(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST() 824 analysis.GetLowerBound(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST() [all …]
|
/third_party/spirv-tools/source/opt/ |
D | loop_dependence.cpp | 142 recurrence->GetOffset()->AsSEConstantNode()->FoldToSingleValue(); in CalculateConstantTerm() 146 constant_term += constant->FoldToSingleValue(); in CalculateConstantTerm() 158 running_gcd, std::abs(coefficient->FoldToSingleValue())); in CalculateGCDFromCoefficients() 564 int64_t delta_value = delta_constant->FoldToSingleValue(); in StrongSIVTest() 565 int64_t coefficient_value = coefficient_constant->FoldToSingleValue(); in StrongSIVTest() 605 int64_t bounds_value = bounds->AsSEConstantNode()->FoldToSingleValue(); in StrongSIVTest() 717 int64_t delta_value = delta_constant->FoldToSingleValue(); in WeakZeroSourceSIVTest() 718 int64_t coefficient_value = coefficient_constant->FoldToSingleValue(); in WeakZeroSourceSIVTest() 751 int64_t lower_bound_value = lower_bound->FoldToSingleValue(); in WeakZeroSourceSIVTest() 752 int64_t upper_bound_value = upper_bound->FoldToSingleValue(); in WeakZeroSourceSIVTest() [all …]
|
D | scalar_analysis.cpp | 63 return CreateConstant(-operand->AsSEConstantNode()->FoldToSingleValue()); in CreateNegation() 120 return CreateConstant(operand_1->AsSEConstantNode()->FoldToSingleValue() * in CreateMultiplyNode() 121 operand_2->AsSEConstantNode()->FoldToSingleValue()); in CreateMultiplyNode() 137 return CreateConstant(operand_1->AsSEConstantNode()->FoldToSingleValue() - in CreateSubtraction() 138 operand_2->AsSEConstantNode()->FoldToSingleValue()); in CreateSubtraction() 149 return CreateConstant(operand_1->AsSEConstantNode()->FoldToSingleValue() + in CreateAddNode() 150 operand_2->AsSEConstantNode()->FoldToSingleValue()); in CreateAddNode() 540 if (AsSEConstantNode()->FoldToSingleValue() != in operator ==() 541 other.AsSEConstantNode()->FoldToSingleValue()) in operator ==() 595 PushToString(node->AsSEConstantNode()->FoldToSingleValue(), &hash_string); in operator ()() [all …]
|
D | loop_dependence_helpers.cpp | 159 if (coefficient_constant->FoldToSingleValue() >= 0) { in IsProvablyOutsideOfLoopBounds() 185 ToString(distance_minus_bounds->FoldToSingleValue())); in IsProvablyOutsideOfLoopBounds() 188 if (distance_minus_bounds->FoldToSingleValue() > 0) { in IsProvablyOutsideOfLoopBounds() 471 if (!(induction_step->AsSEConstantNode()->FoldToSingleValue() == 1 || in IsSupportedLoop() 472 induction_step->AsSEConstantNode()->FoldToSingleValue() == -1)) { in IsSupportedLoop()
|
D | scalar_analysis_simplification.cpp | 187 int64_t new_value = constant->AsSEConstantNode()->FoldToSingleValue() * sign; in AccumulatorsFromMultiply() 251 child->AsSEConstantNode()->FoldToSingleValue() * sign; in GatherAccumulatorsFromChildNodes() 440 new_coefficient_simplified->AsSEConstantNode()->FoldToSingleValue() == in FoldRecurrentAddExpressions() 472 coefficient->AsSEConstantNode()->FoldToSingleValue() == 0) { in EliminateZeroCoefficientRecurrents()
|
D | loop_peeling.cpp | 658 if (offset && coeff && offset->FoldToSingleValue() == 0 && in ProcessLoop() 659 coeff->FoldToSingleValue() == 1) { in ProcessLoop() 1038 flip_iteration.first->AsSEConstantNode()->FoldToSingleValue() + in HandleInequality()
|
D | scalar_analysis_nodes.h | 222 int64_t FoldToSingleValue() const { return literal_value_; } in FoldToSingleValue() function
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/ |
D | loop_dependence.cpp | 142 recurrence->GetOffset()->AsSEConstantNode()->FoldToSingleValue(); in CalculateConstantTerm() 146 constant_term += constant->FoldToSingleValue(); in CalculateConstantTerm() 158 running_gcd, std::abs(coefficient->FoldToSingleValue())); in CalculateGCDFromCoefficients() 564 int64_t delta_value = delta_constant->FoldToSingleValue(); in StrongSIVTest() 565 int64_t coefficient_value = coefficient_constant->FoldToSingleValue(); in StrongSIVTest() 605 int64_t bounds_value = bounds->AsSEConstantNode()->FoldToSingleValue(); in StrongSIVTest() 717 int64_t delta_value = delta_constant->FoldToSingleValue(); in WeakZeroSourceSIVTest() 718 int64_t coefficient_value = coefficient_constant->FoldToSingleValue(); in WeakZeroSourceSIVTest() 751 int64_t lower_bound_value = lower_bound->FoldToSingleValue(); in WeakZeroSourceSIVTest() 752 int64_t upper_bound_value = upper_bound->FoldToSingleValue(); in WeakZeroSourceSIVTest() [all …]
|
D | scalar_analysis.cpp | 63 return CreateConstant(-operand->AsSEConstantNode()->FoldToSingleValue()); in CreateNegation() 120 return CreateConstant(operand_1->AsSEConstantNode()->FoldToSingleValue() * in CreateMultiplyNode() 121 operand_2->AsSEConstantNode()->FoldToSingleValue()); in CreateMultiplyNode() 137 return CreateConstant(operand_1->AsSEConstantNode()->FoldToSingleValue() - in CreateSubtraction() 138 operand_2->AsSEConstantNode()->FoldToSingleValue()); in CreateSubtraction() 149 return CreateConstant(operand_1->AsSEConstantNode()->FoldToSingleValue() + in CreateAddNode() 150 operand_2->AsSEConstantNode()->FoldToSingleValue()); in CreateAddNode() 540 if (AsSEConstantNode()->FoldToSingleValue() != in operator ==() 541 other.AsSEConstantNode()->FoldToSingleValue()) in operator ==() 595 PushToString(node->AsSEConstantNode()->FoldToSingleValue(), &hash_string); in operator ()() [all …]
|
D | loop_dependence_helpers.cpp | 159 if (coefficient_constant->FoldToSingleValue() >= 0) { in IsProvablyOutsideOfLoopBounds() 185 ToString(distance_minus_bounds->FoldToSingleValue())); in IsProvablyOutsideOfLoopBounds() 188 if (distance_minus_bounds->FoldToSingleValue() > 0) { in IsProvablyOutsideOfLoopBounds() 471 if (!(induction_step->AsSEConstantNode()->FoldToSingleValue() == 1 || in IsSupportedLoop() 472 induction_step->AsSEConstantNode()->FoldToSingleValue() == -1)) { in IsSupportedLoop()
|
D | scalar_analysis_simplification.cpp | 187 int64_t new_value = constant->AsSEConstantNode()->FoldToSingleValue() * sign; in AccumulatorsFromMultiply() 251 child->AsSEConstantNode()->FoldToSingleValue() * sign; in GatherAccumulatorsFromChildNodes() 440 new_coefficient_simplified->AsSEConstantNode()->FoldToSingleValue() == in FoldRecurrentAddExpressions() 472 coefficient->AsSEConstantNode()->FoldToSingleValue() == 0) { in EliminateZeroCoefficientRecurrents()
|
D | loop_peeling.cpp | 658 if (offset && coeff && offset->FoldToSingleValue() == 0 && in ProcessLoop() 659 coeff->FoldToSingleValue() == 1) { in ProcessLoop() 1038 flip_iteration.first->AsSEConstantNode()->FoldToSingleValue() + in HandleInequality()
|
D | scalar_analysis_nodes.h | 222 int64_t FoldToSingleValue() const { return literal_value_; } in FoldToSingleValue() function
|
/third_party/skia/third_party/externals/spirv-tools/source/opt/ |
D | loop_dependence.cpp | 142 recurrence->GetOffset()->AsSEConstantNode()->FoldToSingleValue(); in CalculateConstantTerm() 146 constant_term += constant->FoldToSingleValue(); in CalculateConstantTerm() 158 running_gcd, std::abs(coefficient->FoldToSingleValue())); in CalculateGCDFromCoefficients() 564 int64_t delta_value = delta_constant->FoldToSingleValue(); in StrongSIVTest() 565 int64_t coefficient_value = coefficient_constant->FoldToSingleValue(); in StrongSIVTest() 605 int64_t bounds_value = bounds->AsSEConstantNode()->FoldToSingleValue(); in StrongSIVTest() 717 int64_t delta_value = delta_constant->FoldToSingleValue(); in WeakZeroSourceSIVTest() 718 int64_t coefficient_value = coefficient_constant->FoldToSingleValue(); in WeakZeroSourceSIVTest() 751 int64_t lower_bound_value = lower_bound->FoldToSingleValue(); in WeakZeroSourceSIVTest() 752 int64_t upper_bound_value = upper_bound->FoldToSingleValue(); in WeakZeroSourceSIVTest() [all …]
|
D | scalar_analysis.cpp | 63 return CreateConstant(-operand->AsSEConstantNode()->FoldToSingleValue()); in CreateNegation() 120 return CreateConstant(operand_1->AsSEConstantNode()->FoldToSingleValue() * in CreateMultiplyNode() 121 operand_2->AsSEConstantNode()->FoldToSingleValue()); in CreateMultiplyNode() 137 return CreateConstant(operand_1->AsSEConstantNode()->FoldToSingleValue() - in CreateSubtraction() 138 operand_2->AsSEConstantNode()->FoldToSingleValue()); in CreateSubtraction() 149 return CreateConstant(operand_1->AsSEConstantNode()->FoldToSingleValue() + in CreateAddNode() 150 operand_2->AsSEConstantNode()->FoldToSingleValue()); in CreateAddNode() 540 if (AsSEConstantNode()->FoldToSingleValue() != in operator ==() 541 other.AsSEConstantNode()->FoldToSingleValue()) in operator ==() 595 PushToString(node->AsSEConstantNode()->FoldToSingleValue(), &hash_string); in operator ()() [all …]
|
D | loop_dependence_helpers.cpp | 159 if (coefficient_constant->FoldToSingleValue() >= 0) { in IsProvablyOutsideOfLoopBounds() 185 ToString(distance_minus_bounds->FoldToSingleValue())); in IsProvablyOutsideOfLoopBounds() 188 if (distance_minus_bounds->FoldToSingleValue() > 0) { in IsProvablyOutsideOfLoopBounds() 471 if (!(induction_step->AsSEConstantNode()->FoldToSingleValue() == 1 || in IsSupportedLoop() 472 induction_step->AsSEConstantNode()->FoldToSingleValue() == -1)) { in IsSupportedLoop()
|
D | scalar_analysis_simplification.cpp | 187 int64_t new_value = constant->AsSEConstantNode()->FoldToSingleValue() * sign; in AccumulatorsFromMultiply() 251 child->AsSEConstantNode()->FoldToSingleValue() * sign; in GatherAccumulatorsFromChildNodes() 440 new_coefficient_simplified->AsSEConstantNode()->FoldToSingleValue() == in FoldRecurrentAddExpressions() 472 coefficient->AsSEConstantNode()->FoldToSingleValue() == 0) { in EliminateZeroCoefficientRecurrents()
|
D | loop_peeling.cpp | 658 if (offset && coeff && offset->FoldToSingleValue() == 0 && in ProcessLoop() 659 coeff->FoldToSingleValue() == 1) { in ProcessLoop() 1038 flip_iteration.first->AsSEConstantNode()->FoldToSingleValue() + in HandleInequality()
|
D | scalar_analysis_nodes.h | 222 int64_t FoldToSingleValue() const { return literal_value_; } in FoldToSingleValue() function
|
/third_party/skia/third_party/externals/spirv-tools/test/opt/ |
D | scalar_analysis.cpp | 148 EXPECT_EQ(simplified->GetChild(0)->AsSEConstantNode()->FoldToSingleValue(), in TEST_F() 152 EXPECT_EQ(simplified->GetChild(1)->AsSEConstantNode()->FoldToSingleValue(), in TEST_F() 279 EXPECT_EQ(rec->GetCoefficient()->AsSEConstantNode()->FoldToSingleValue(), 1u); in TEST_F() 379 EXPECT_EQ(simplified->AsSEConstantNode()->FoldToSingleValue(), 33u); in TEST_F() 548 EXPECT_EQ(simplified_node->AsSEConstantNode()->FoldToSingleValue(), 0u); in TEST_F() 568 EXPECT_EQ(simplified_node->AsSEConstantNode()->FoldToSingleValue(), 1u); in TEST_F() 587 EXPECT_EQ(simplified_node->AsSEConstantNode()->FoldToSingleValue(), -1); in TEST_F() 606 EXPECT_EQ(simplified_node->AsSEConstantNode()->FoldToSingleValue(), 0u); in TEST_F() 626 EXPECT_EQ(simplified_node->AsSEConstantNode()->FoldToSingleValue(), 0u); in TEST_F() 908 EXPECT_EQ(child_1->AsSEConstantNode()->FoldToSingleValue(), -1); in TEST_F() [all …]
|
/third_party/spirv-tools/test/opt/ |
D | scalar_analysis.cpp | 148 EXPECT_EQ(simplified->GetChild(0)->AsSEConstantNode()->FoldToSingleValue(), in TEST_F() 152 EXPECT_EQ(simplified->GetChild(1)->AsSEConstantNode()->FoldToSingleValue(), in TEST_F() 279 EXPECT_EQ(rec->GetCoefficient()->AsSEConstantNode()->FoldToSingleValue(), 1u); in TEST_F() 379 EXPECT_EQ(simplified->AsSEConstantNode()->FoldToSingleValue(), 33u); in TEST_F() 548 EXPECT_EQ(simplified_node->AsSEConstantNode()->FoldToSingleValue(), 0u); in TEST_F() 568 EXPECT_EQ(simplified_node->AsSEConstantNode()->FoldToSingleValue(), 1u); in TEST_F() 587 EXPECT_EQ(simplified_node->AsSEConstantNode()->FoldToSingleValue(), -1); in TEST_F() 606 EXPECT_EQ(simplified_node->AsSEConstantNode()->FoldToSingleValue(), 0u); in TEST_F() 626 EXPECT_EQ(simplified_node->AsSEConstantNode()->FoldToSingleValue(), 0u); in TEST_F() 908 EXPECT_EQ(child_1->AsSEConstantNode()->FoldToSingleValue(), -1); in TEST_F() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/opt/ |
D | scalar_analysis.cpp | 148 EXPECT_EQ(simplified->GetChild(0)->AsSEConstantNode()->FoldToSingleValue(), in TEST_F() 152 EXPECT_EQ(simplified->GetChild(1)->AsSEConstantNode()->FoldToSingleValue(), in TEST_F() 279 EXPECT_EQ(rec->GetCoefficient()->AsSEConstantNode()->FoldToSingleValue(), 1u); in TEST_F() 379 EXPECT_EQ(simplified->AsSEConstantNode()->FoldToSingleValue(), 33u); in TEST_F() 548 EXPECT_EQ(simplified_node->AsSEConstantNode()->FoldToSingleValue(), 0u); in TEST_F() 568 EXPECT_EQ(simplified_node->AsSEConstantNode()->FoldToSingleValue(), 1u); in TEST_F() 587 EXPECT_EQ(simplified_node->AsSEConstantNode()->FoldToSingleValue(), -1); in TEST_F() 606 EXPECT_EQ(simplified_node->AsSEConstantNode()->FoldToSingleValue(), 0u); in TEST_F() 626 EXPECT_EQ(simplified_node->AsSEConstantNode()->FoldToSingleValue(), 0u); in TEST_F() 908 EXPECT_EQ(child_1->AsSEConstantNode()->FoldToSingleValue(), -1); in TEST_F() [all …]
|