[PATCH] D132657: [DSE] Eliminate noop store even through has clobbering between LoadI and StoreI
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 9 01:04:22 PDT 2022
nikic added inline comments.
================
Comment at: llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp:1896
+ CurrentDef->getDefiningAccess(),
+ MemoryLocation::get(LoadI)));
+ continue;
----------------
This should probably use the Store location -- the location itself is the same, but they may differ in AAMDNodes.
Is this code correct in the presence of backedges? We are looking through MemoryPhis above, so we might be looking at a previous loop iteration. This should probably have a loop invariance check on the location.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D132657/new/
https://reviews.llvm.org/D132657
More information about the llvm-commits
mailing list