aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Lex/ModuleMap.cpp
diff options
context:
space:
mode:
authorBrian M. Rzycki <brzycki@gmail.com>2018-01-04 21:57:32 +0000
committerBrian M. Rzycki <brzycki@gmail.com>2018-01-04 21:57:32 +0000
commitcdad6c0b60d5df0cf610a902838652f54d207d6f (patch)
treec882323147a3e8894092e18073e083965e053400 /clang/lib/Lex/ModuleMap.cpp
parent6161a0b3b0ae3160c2317ad31f273973e1f889b0 (diff)
downloadllvm-cdad6c0b60d5df0cf610a902838652f54d207d6f.zip
llvm-cdad6c0b60d5df0cf610a902838652f54d207d6f.tar.gz
llvm-cdad6c0b60d5df0cf610a902838652f54d207d6f.tar.bz2
[JumpThreading] Preservation of DT and LVI across the pass
Summary: See D37528 for a previous (non-deferred) version of this patch and its description. Preserves dominance in a deferred manner using a new class DeferredDominance. This reduces the performance impact of updating the DominatorTree at every edge insertion and deletion. A user may call DDT->flush() within JumpThreading for an up-to-date DT. This patch currently has one flush() at the end of runImpl() to ensure DT is preserved across the pass. LVI is also preserved to help subsequent passes such as CorrelatedValuePropagation. LVI is simpler to maintain and is done immediately (not deferred). The code to perfom the preversation was minimally altered and was simply marked as preserved for the PassManager to be informed. This extends the analysis available to JumpThreading for future enhancements. One example is loop boundary threading. Reviewers: dberlin, kuhar, sebpop Reviewed By: kuhar, sebpop Subscribers: hiraditya, llvm-commits Differential Revision: https://reviews.llvm.org/D40146 llvm-svn: 321825
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions