aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Tooling/Syntax/TreeTest.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2020-03-20 07:51:29 +0000
committerFlorian Hahn <flo@fhahn.com>2020-03-20 07:51:42 +0000
commit3a8372ed02abe9ce6c82d12dbec3f5eed2d3a5f0 (patch)
tree394e9c55fc3de099c666199446fda1e60b3666df /clang/unittests/Tooling/Syntax/TreeTest.cpp
parent2cbb8c946a6e89faa61333d3aede503d37551639 (diff)
downloadllvm-3a8372ed02abe9ce6c82d12dbec3f5eed2d3a5f0.zip
llvm-3a8372ed02abe9ce6c82d12dbec3f5eed2d3a5f0.tar.gz
llvm-3a8372ed02abe9ce6c82d12dbec3f5eed2d3a5f0.tar.bz2
[DSE] Support traversing MemoryPhis.
For MemoryPhis, we have to avoid that the MemoryPhi may be executed before before the access we are currently looking at. To do this we do a post-order numbering of the basic blocks in the function and bail out once we reach a MemoryPhi with a larger (or equal) post-order block number than the current MemoryAccess. This changes the order in which we visit stores for elimination. This patch also adds support for exploring multiple paths. We keep a worklist (ToCheck) of memory accesses that might be eliminated by our starting MemoryDef or MemoryPhis for further exploration. For MemoryPhis, we add the incoming values to the worklist, for MemoryDefs we add the defining access. Reviewers: dmgreen, rnk, efriedma, bryant, asbirlea Reviewed By: asbirlea Differential Revision: https://reviews.llvm.org/D72148
Diffstat (limited to 'clang/unittests/Tooling/Syntax/TreeTest.cpp')
0 files changed, 0 insertions, 0 deletions