[PATCH] D13363: [DeadStoreElimination] Add support for non-local DSE
Ivan Baev via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 1 16:31:41 PST 2015
ivanbaev marked 12 inline comments as done.
================
Comment at: lib/Transforms/Scalar/DeadStoreElimination.cpp:653
@@ +652,3 @@
+ }
+ } else if (InstDep.isNonLocal()) { // DSE across BB
+ if (++NumNonLocalAttempts < MaxNonLocalAttempts)
----------------
A StoreInst will never be a self read.
================
Comment at: lib/Transforms/Scalar/DeadStoreElimination.cpp:808
@@ +807,3 @@
+ continue;
+ if (!DT->isReachableFromEntry(Pred) || DT->dominates(BB, Pred))
+ continue;
----------------
By design, DSE - local, non-local, other parts - depends on MemoryDependenceAnalysis, and only occasionally relies on alias analysis.
http://reviews.llvm.org/D13363
More information about the llvm-commits
mailing list