Revert "[SimplifyCFG] `FoldBranchToCommonDest()`: deal with mismatched IV's in PHI...
authorAlexander Kornienko <alexfh@google.com>
Fri, 16 Dec 2022 15:43:58 +0000 (16:43 +0100)
committerAlexander Kornienko <alexfh@google.com>
Fri, 16 Dec 2022 16:23:35 +0000 (17:23 +0100)
commit37b8f09a4b61bf9bf9d0b9017d790c8b82be2e17
treea5c1fbee7839ef7c95761eddbb29996b13116b51
parent7f8bd8ac0658b5e75049fd5c04fcf8c31352f397
Revert "[SimplifyCFG] `FoldBranchToCommonDest()`: deal with mismatched IV's in PHI's in common successor block"

This reverts commit 1bd0b82e508d049efdb07f4f8a342f35818df341, since it leads to
miscompiles. See https://reviews.llvm.org/D139275#3993229 and
https://reviews.llvm.org/D139275#4001580.
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