[llvm] [GVN] Drop Clobber dependency if store may overwrite only the same value (PR #68322)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 9 05:59:34 PDT 2023
================
@@ -577,6 +610,9 @@ MemDepResult MemoryDependenceResults::getSimplePointerDependencyFrom(
return MemDepResult::getDef(Inst);
if (isInvariantLoad)
continue;
+ if (canSkipClobberingStore(SI, MemLoc, MemLocAlign, BatchAA,
+ getDefaultBlockScanLimit()))
----------------
nikic wrote:
Hm, do you think it would make sense to pass `Limit` here instead? That way, if we already walked ~100 instructions in the main clobber walk, we're not going to walk another ~100 trying to skip.
https://github.com/llvm/llvm-project/pull/68322
More information about the llvm-commits
mailing list