Skip to content

Commit d3258eb

Browse files
committed
Rebase && add vp_cttz test && correct the failed tests
1 parent 8bcac22 commit d3258eb

File tree

4 files changed

+181
-35
lines changed

4 files changed

+181
-35
lines changed

llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -995,9 +995,12 @@ InstructionCost VPWidenIntrinsicRecipe::computeCost(ElementCount VF,
995995
if (!V) {
996996
// Push all the VP Intrinsic's ops into the Argments even if is nullptr.
997997
// Some VP Intrinsic's cost will assert the number of parameters.
998+
// Mainly appears in the following two scenarios:
999+
// 1. EVL Op is nullptr
1000+
// 2. The Argmunt of the VP Intrinsic is also the VP Intrinsic
9981001
if (VPIntrinsic::isVPIntrinsic(VectorIntrinsicID)) {
9991002
Arguments.push_back(V);
1000-
break;
1003+
continue;
10011004
}
10021005
if (auto *UI = dyn_cast_or_null<CallBase>(getUnderlyingValue())) {
10031006
Arguments.push_back(UI->getArgOperand(Idx));

0 commit comments

Comments
 (0)