Revert "Reland "[SimplifyCFG] `FoldBranchToCommonDest()`: deal with mismatched IV...
authorRoman Lebedev <lebedev.ri@gmail.com>
Tue, 20 Dec 2022 15:25:37 +0000 (18:25 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Tue, 20 Dec 2022 15:36:42 +0000 (18:36 +0300)
commit3a8e009f97d2ed4b751365e514e0bf7131c7ab11
treeeb8423050f08df3b7aa4ddaceb7ce169d67d5970
parent015f8cd78ec6e9f3309af056cfebf43dbe8cafa0
Revert "Reland "[SimplifyCFG] `FoldBranchToCommonDest()`: deal with mismatched IV's in PHI's in common successor block""

One of these two changes is exposing (or causing) some more miscompiles.
A reproducer is in progress, so reverting until resolved.

This reverts commit 428f36401b1b695fd501ebfdc8773bed8ced8d4e.
22 files changed:
llvm/lib/Transforms/Utils/SimplifyCFG.cpp
llvm/test/CodeGen/AArch64/rm_redundant_cmp.ll
llvm/test/CodeGen/AArch64/tailmerging_in_mbp.ll
llvm/test/CodeGen/AArch64/typepromotion-cost.ll
llvm/test/CodeGen/PowerPC/ppc-ctr-dead-code.ll
llvm/test/CodeGen/PowerPC/pr48527.ll
llvm/test/CodeGen/X86/loop-search.ll
llvm/test/Transforms/InstCombine/unused-nonnull.ll
llvm/test/Transforms/LICM/hoist-phi.ll
llvm/test/Transforms/LICM/sinking.ll
llvm/test/Transforms/LoopStrengthReduce/AArch64/small-constant.ll
llvm/test/Transforms/LoopUnroll/runtime-loop-multiple-exits.ll
llvm/test/Transforms/LoopUnroll/scevunroll.ll
llvm/test/Transforms/LoopUnroll/unroll-after-peel.ll
llvm/test/Transforms/LoopUnroll/unroll-header-exiting-with-phis-multiple-exiting-blocks.ll
llvm/test/Transforms/SimplifyCFG/2008-07-13-InfLoopMiscompile.ll
llvm/test/Transforms/SimplifyCFG/X86/SpeculativeExec.ll
llvm/test/Transforms/SimplifyCFG/X86/switch_to_lookup_table.ll
llvm/test/Transforms/SimplifyCFG/fold-branch-to-common-dest-phis.ll
llvm/test/Transforms/SimplifyCFG/fold-branch-to-common-dest.ll
llvm/test/Transforms/SimplifyCFG/hoist-dbgvalue.ll
llvm/test/Transforms/SimplifyCFG/switch-on-const-select.ll