[PATCH] D81233: Correctly report modified status for DSE
serge via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 5 01:03:45 PDT 2020
serge-sans-paille created this revision.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
serge-sans-paille added reviewers: nikic, foad, jdoerfert, fhahn.
Related to https://reviews.llvm.org/D80916
https://reviews.llvm.org/D81233
Files:
llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
Index: llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
===================================================================
--- llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
+++ llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
@@ -1859,6 +1859,7 @@
LLVM_DEBUG(dbgs() << "DSE: Remove Dead Store:\n DEAD: " << *SI
<< '\n');
NumNoopStores++;
+ MadeChange = true;
continue;
}
}
@@ -2051,7 +2052,7 @@
PostDominatorTree &PDT =
getAnalysis<PostDominatorTreeWrapperPass>().getPostDomTree();
- eliminateDeadStoresMemorySSA(F, AA, MSSA, DT, PDT, TLI);
+ Changed = eliminateDeadStoresMemorySSA(F, AA, MSSA, DT, PDT, TLI);
} else {
MemoryDependenceResults &MD =
getAnalysis<MemoryDependenceWrapperPass>().getMemDep();
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81233.268686.patch
Type: text/x-patch
Size: 845 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200605/393a7b0a/attachment-0001.bin>
More information about the llvm-commits
mailing list