OSDN Git Service

[DSE,MSSA] Reorder DSE blocking checks.
authorFlorian Hahn <flo@fhahn.com>
Mon, 22 Jun 2020 15:24:27 +0000 (16:24 +0100)
committerFlorian Hahn <flo@fhahn.com>
Mon, 22 Jun 2020 16:16:34 +0000 (17:16 +0100)
commit328c8642e2a089b2826e83b50dd971f91dd5fe73
tree7a70a75ac12bbe8a72621b8adfee3b2a3f391f03
parentc52bee61e91b421da4f603f3aa8111bee2fd1b30
[DSE,MSSA] Reorder DSE blocking checks.

Currently we stop exploring candidates too early in some cases.

In particular, we can continue checking the defining accesses of
non-removable MemoryDefs and defs without analyzable write location
(read clobbers are already ruled out using MemorySSA at this point).
llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
llvm/test/Transforms/DeadStoreElimination/MSSA/simple.ll