[llvm] [VPlan] Manage noalias/alias_scope metadata in VPlan. (NFC) (PR #136450)
via llvm-commits
llvm-commits at lists.llvm.org
Fri May 2 13:09:54 PDT 2025
================
@@ -9013,6 +8997,20 @@ bool VPRecipeBuilder::getScaledReductions(
return false;
}
+SmallVector<std::pair<unsigned, MDNode *>>
+VPRecipeBuilder::getMetadataToPropagate(Instruction *I) const {
+ SmallVector<std::pair<unsigned, MDNode *>> Metadata;
+ ::getMetadataToPropagate(I, Metadata);
+ if (LVer && isa<LoadInst, StoreInst>(I)) {
----------------
ayalz wrote:
nit:
```suggestion
if (!LVer || !isa<LoadInst, StoreInst>(I))
return Metadata;
```
?
https://github.com/llvm/llvm-project/pull/136450
More information about the llvm-commits
mailing list