aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorRoman Lebedev <lebedev.ri@gmail.com>2021-01-28 01:24:19 +0300
committerRoman Lebedev <lebedev.ri@gmail.com>2021-01-28 01:58:53 +0300
commit7e88942d2548704b35ac92bd327b38f9c6a991d2 (patch)
tree681fb0d307db17a29623f962e1e047b3d6919be1 /clang/lib/Frontend/CompilerInvocation.cpp
parent3d25fdc5c21f174d38ac78dd01ccaf6eec655bc0 (diff)
downloadllvm-7e88942d2548704b35ac92bd327b38f9c6a991d2.zip
llvm-7e88942d2548704b35ac92bd327b38f9c6a991d2.tar.gz
llvm-7e88942d2548704b35ac92bd327b38f9c6a991d2.tar.bz2
[CodeGen] IndirectBrExpandPass: preserve Dominator Tree, if available
This fully de-pessimizes the common case of no indirectbr's, (where we don't actually need to do anything to preserve domtree) and avoids domtree recomputation in the case there were indirectbr's. Note that two indirectbr's could have a common successor, and not all successors of an indirectbr's are meant to survive the expansion. Though, the code assumes that an indirectbr's doesn't have duplicate successors, those *should* have been deduplicated by simplifycfg or something already.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions