[llvm] [GVN] Handle value-preserving stores in MSSA-based load elimination (PR #223793)
Antonio Frighetto via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 21 02:47:22 PDT 2026
================
@@ -351,34 +351,29 @@ MemoryDependenceResults::getInvariantGroupPointerDependency(LoadInst *LI,
return MemDepResult::getNonLocal();
}
-// Check if SI that may alias with MemLoc can be safely skipped. This is
-// possible in case if SI can only must alias or no alias with MemLoc (no
-// partial overlapping possible) and it writes the same value that MemLoc
-// contains now (it was loaded before this store and was not modified in
-// between).
-static bool canSkipClobberingStore(const StoreInst *SI,
----------------
antoniofrighetto wrote:
Right, the helper has been moved out in Loads.
https://github.com/llvm/llvm-project/pull/223793
More information about the llvm-commits
mailing list