[llvm] [VPlan] Hoist loads with invariant addresses using noalias metadata. (PR #166247)

Renato Golin via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 11 14:53:19 PST 2025


================
@@ -376,3 +377,20 @@ bool VPBlockUtils::isLatch(const VPBlockBase *VPB,
   return VPB->getNumSuccessors() == 2 &&
          VPBlockUtils::isHeader(VPB->getSuccessors()[1], VPDT);
 }
+
+std::optional<MemoryLocation>
+vputils::getMemoryLocation(const VPRecipeBase &R) {
+  return TypeSwitch<const VPRecipeBase *, std::optional<MemoryLocation>>(&R)
+      .Case<VPWidenStoreRecipe, VPInterleaveBase, VPReplicateRecipe>(
----------------
rengolin wrote:

Will this remain small / exhaustive list of recipes?



https://github.com/llvm/llvm-project/pull/166247


More information about the llvm-commits mailing list