[llvm] [VPlan] Extend cse to eliminate redundant widened loads (PR #212543)

Ramkumar Ramachandra via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 3 07:38:25 PDT 2026


================
@@ -2304,7 +2330,26 @@ struct VPCSEDenseMapInfo : public DenseMapInfo<VPSingleDefRecipe *> {
 };
 } // end anonymous namespace
 
-/// Perform a common-subexpression-elimination of VPSingleDefRecipes on the \p
+/// Return true if no memory-writing recipe between \p From and \p To may alias
+/// \p MemLoc. \p From and \p To must be in the same block.
+static bool noAliasingWriteBetween(const MemoryLocation &MemLoc,
----------------
artagnon wrote:

Would be good to rename this canCSEWithNoAliasCheck, and move it close it canHoistOrSinkWithNoAliasCheck, for clarity?

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


More information about the llvm-commits mailing list