[SimplifyCFG] TryToSimplifyUncondBranchFromEmptyBlock() already knows how to preserve...
authorRoman Lebedev <lebedev.ri@gmail.com>
Wed, 16 Dec 2020 21:11:42 +0000 (00:11 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Wed, 16 Dec 2020 22:03:49 +0000 (01:03 +0300)
commit5cce4aff18c4066c11c927fbe0943dffb6cd76b5
treefef69f36df5712cf9a2eec5974ec0f66bcc40aa0
parent49dac4aca0a13960f1aa46a20b11765992a9196c
[SimplifyCFG] TryToSimplifyUncondBranchFromEmptyBlock() already knows how to preserve DomTree

... so just ensure that we pass DomTreeUpdater it into it.

Fixes DomTree preservation for a large number of tests,
all of which are marked as such so that they do not regress.
74 files changed:
llvm/lib/Transforms/Utils/SimplifyCFG.cpp
llvm/test/Transforms/ADCE/2003-11-16-MissingPostDominanceInfo.ll
llvm/test/Transforms/Inline/invoke_test-2.ll
llvm/test/Transforms/InstCombine/2004-09-20-BadLoadCombine2.ll
llvm/test/Transforms/JumpThreading/lvi-tristate.ll
llvm/test/Transforms/LoopDeletion/dcetest.ll
llvm/test/Transforms/LoopSimplify/do-preheader-dbg.ll
llvm/test/Transforms/LoopSimplify/for-preheader-dbg.ll
llvm/test/Transforms/LoopUnroll/peel-loop.ll
llvm/test/Transforms/LoopUnswitch/2015-06-17-Metadata.ll
llvm/test/Transforms/LoopUnswitch/infinite-loop.ll
llvm/test/Transforms/LoopVectorize/ARM/mve-qabs.ll
llvm/test/Transforms/LoopVectorize/ARM/mve-reductions.ll
llvm/test/Transforms/LoopVectorize/ARM/pointer_iv.ll
llvm/test/Transforms/LoopVectorize/ARM/tail-fold-multiple-icmps.ll
llvm/test/Transforms/LoopVectorize/X86/float-induction-x86.ll
llvm/test/Transforms/LoopVectorize/X86/x86-interleaved-accesses-masked-group.ll
llvm/test/Transforms/LoopVectorize/X86/x86-predication.ll
llvm/test/Transforms/LoopVectorize/float-induction.ll
llvm/test/Transforms/LoopVectorize/hints-trans.ll
llvm/test/Transforms/LoopVectorize/if-pred-not-when-safe.ll
llvm/test/Transforms/LoopVectorize/tbaa-nodep.ll
llvm/test/Transforms/LoopVectorize/vectorize-once.ll
llvm/test/Transforms/SCCP/2002-05-21-InvalidSimplify.ll
llvm/test/Transforms/SimplifyCFG/2003-08-17-BranchFoldOrdering.ll
llvm/test/Transforms/SimplifyCFG/2003-08-17-FoldSwitch.ll
llvm/test/Transforms/SimplifyCFG/2006-06-12-InfLoop.ll
llvm/test/Transforms/SimplifyCFG/2006-08-03-Crash.ll
llvm/test/Transforms/SimplifyCFG/2007-12-21-Crash.ll
llvm/test/Transforms/SimplifyCFG/2008-09-17-SpeculativeHoist.ll
llvm/test/Transforms/SimplifyCFG/2009-05-12-externweak.ll
llvm/test/Transforms/SimplifyCFG/AArch64/cttz-ctlz.ll
llvm/test/Transforms/SimplifyCFG/AMDGPU/cttz-ctlz.ll
llvm/test/Transforms/SimplifyCFG/ARM/cttz-ctlz.ll
llvm/test/Transforms/SimplifyCFG/ARM/select-costs.ll
llvm/test/Transforms/SimplifyCFG/ARM/switch-to-lookup-table-constant-expr.ll
llvm/test/Transforms/SimplifyCFG/EqualPHIEdgeBlockMerge.ll
llvm/test/Transforms/SimplifyCFG/ForwardSwitchConditionToPHI.ll
llvm/test/Transforms/SimplifyCFG/Mips/cttz-ctlz.ll
llvm/test/Transforms/SimplifyCFG/PR16069.ll
llvm/test/Transforms/SimplifyCFG/PR17073.ll
llvm/test/Transforms/SimplifyCFG/PR27615-simplify-cond-br.ll
llvm/test/Transforms/SimplifyCFG/PhiBlockMerge2.ll
llvm/test/Transforms/SimplifyCFG/PhiEliminate.ll
llvm/test/Transforms/SimplifyCFG/PowerPC/cttz-ctlz-spec.ll
llvm/test/Transforms/SimplifyCFG/UncondBranchToHeader.ll
llvm/test/Transforms/SimplifyCFG/X86/disable-lookup-table.ll
llvm/test/Transforms/SimplifyCFG/X86/fold-branch-debuginvariant.ll
llvm/test/Transforms/SimplifyCFG/X86/remove-debug-2.ll
llvm/test/Transforms/SimplifyCFG/X86/remove-debug.ll
llvm/test/Transforms/SimplifyCFG/attr-convergent.ll
llvm/test/Transforms/SimplifyCFG/branch-cond-merge.ll
llvm/test/Transforms/SimplifyCFG/branch-cond-prop.ll
llvm/test/Transforms/SimplifyCFG/common-code-hoisting.ll
llvm/test/Transforms/SimplifyCFG/constantexprs.ll
llvm/test/Transforms/SimplifyCFG/drop-debug-loc-when-speculating.ll
llvm/test/Transforms/SimplifyCFG/extract-cost.ll
llvm/test/Transforms/SimplifyCFG/guards.ll
llvm/test/Transforms/SimplifyCFG/merge-cond-stores-2.ll
llvm/test/Transforms/SimplifyCFG/multiple-phis.ll
llvm/test/Transforms/SimplifyCFG/no_speculative_loads_with_asan.ll
llvm/test/Transforms/SimplifyCFG/no_speculative_loads_with_tsan.ll
llvm/test/Transforms/SimplifyCFG/phi-to-select-constexpr-icmp.ll
llvm/test/Transforms/SimplifyCFG/preserve-branchweights-partial.ll
llvm/test/Transforms/SimplifyCFG/preserve-llvm-loop-metadata.ll
llvm/test/Transforms/SimplifyCFG/preserve-store-alignment.ll
llvm/test/Transforms/SimplifyCFG/select-gep.ll
llvm/test/Transforms/SimplifyCFG/speculate-call.ll
llvm/test/Transforms/SimplifyCFG/speculate-dbgvalue.ll
llvm/test/Transforms/SimplifyCFG/speculate-store.ll
llvm/test/Transforms/SimplifyCFG/switch-to-select-multiple-edge-per-block-phi.ll
llvm/test/Transforms/SimplifyCFG/switch_undef.ll
llvm/test/Transforms/SimplifyCFG/two-entry-phi-return.ll
llvm/test/Transforms/SimplifyCFG/unreachable-cleanuppad.ll