[llvm] [VPlan] Manage instruction medata in VPlan. (PR #135272)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 19 12:27:53 PDT 2025
================
@@ -9082,6 +9089,13 @@ bool VPRecipeBuilder::getScaledReductions(
return false;
}
+SmallVector<std::pair<unsigned, MDNode *>>
+VPRecipeBuilder::getMetadataToPropagate(Instruction *I) {
+ SmallVector<std::pair<unsigned, MDNode *>> Metadata;
+ ::getMetadataToPropagate(I, Metadata);
----------------
fhahn wrote:
It's a helper to get the metadata that can and should be propagated to the vector instructions: https://github.com/llvm/llvm-project/blob/main/llvm/lib/Analysis/VectorUtils.cpp#L991
https://github.com/llvm/llvm-project/pull/135272
More information about the llvm-commits
mailing list