Revert "[Local] Allow creating callbr with duplicate successors"
authorNick Desaulniers <ndesaulniers@google.com>
Tue, 19 Jul 2022 21:59:07 +0000 (14:59 -0700)
committerNick Desaulniers <ndesaulniers@google.com>
Tue, 19 Jul 2022 22:03:27 +0000 (15:03 -0700)
commit1cf6b93df168fea81e3ca7c6c3c9fcaaf82c7785
tree2388a4687fddef01535424fcd8bc5abdd8444ad5
parent6d8438314fa69f8c978a710c6ef1304bfe9c3451
Revert "[Local] Allow creating callbr with duplicate successors"

This reverts commit 08860f525a2363ccd697ebb3ff59769e37b1be21.

Crashes during PPC64LE linux kernel builds as reported by @nathanchance.
https://reviews.llvm.org/D129997#3663632
llvm/lib/Transforms/Utils/Local.cpp
llvm/test/CodeGen/AArch64/callbr-asm-obj-file.ll
llvm/test/Transforms/JumpThreading/callbr-edge-split.ll
llvm/test/Transforms/JumpThreading/pr46857-callbr.ll
llvm/test/Transforms/SimplifyCFG/callbr-destinations.ll
llvm/test/Transforms/SimplifyCFG/jump-threading.ll