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

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 10 08:52:41 PST 2025


================
@@ -71,6 +72,10 @@ std::optional<VPValue *>
 getRecipesForUncountableExit(VPlan &Plan,
                              SmallVectorImpl<VPRecipeBase *> &Recipes,
                              SmallVectorImpl<VPRecipeBase *> &GEPs);
+
+/// Return a MemoryLocation for \p R with noalias metadata populated from
+/// \p R. The pointer of the location is conservatively set to nullptr.
+std::optional<MemoryLocation> getMemoryLocation(const VPRecipeBase &R);
----------------
fhahn wrote:

Added, thanks!

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


More information about the llvm-commits mailing list