Skip to content

Commit 383c6c0

Browse files
committed
[VPlan][EVL] Remove metadata on EVL vectorized loops
1 parent 678dcf1 commit 383c6c0

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

llvm/lib/Transforms/Vectorize/VPlan.cpp

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1700,26 +1700,6 @@ void LoopVectorizationPlanner::updateLoopMetadataAndProfileInfo(
17001700
LoopVectorizeHints Hints(VectorLoop, true, *ORE);
17011701
Hints.setAlreadyVectorized();
17021702
}
1703-
1704-
// Check if it's EVL-vectorized and mark the corresponding metadata.
1705-
bool IsEVLVectorized =
1706-
llvm::any_of(*HeaderVPBB, [](const VPRecipeBase &Recipe) {
1707-
// Looking for the ExplictVectorLength VPInstruction.
1708-
if (const auto *VI = dyn_cast<VPInstruction>(&Recipe))
1709-
return VI->getOpcode() == VPInstruction::ExplicitVectorLength;
1710-
return false;
1711-
});
1712-
if (IsEVLVectorized) {
1713-
LLVMContext &Context = VectorLoop->getHeader()->getContext();
1714-
MDNode *LoopID = VectorLoop->getLoopID();
1715-
auto *IsEVLVectorizedMD = MDNode::get(
1716-
Context,
1717-
{MDString::get(Context, "llvm.loop.isvectorized.tailfoldingstyle"),
1718-
MDString::get(Context, "evl")});
1719-
MDNode *NewLoopID = makePostTransformationMetadata(Context, LoopID, {},
1720-
{IsEVLVectorizedMD});
1721-
VectorLoop->setLoopID(NewLoopID);
1722-
}
17231703
}
17241704
TargetTransformInfo::UnrollingPreferences UP;
17251705
TTI.getUnrollingPreferences(VectorLoop, *PSE.getSE(), UP, ORE);

0 commit comments

Comments
 (0)