diff options
author | Nikita Popov <npopov@redhat.com> | 2022-08-31 13:08:20 -0700 |
---|---|---|
committer | Nick Desaulniers <ndesaulniers@google.com> | 2022-08-31 13:23:00 -0700 |
commit | ab6876a40d06e7a30a2ab7c7dcb3440672e201ea (patch) | |
tree | ef8ca9e4a78802211fd9efdd947c377211185830 /llvm/lib/Object/WasmObjectFile.cpp | |
parent | 2928b230ce0e23b07c57470af5b830019b314951 (diff) | |
download | llvm-ab6876a40d06e7a30a2ab7c7dcb3440672e201ea.zip llvm-ab6876a40d06e7a30a2ab7c7dcb3440672e201ea.tar.gz llvm-ab6876a40d06e7a30a2ab7c7dcb3440672e201ea.tar.bz2 |
reland: [Local] Allow creating callbr with duplicate successors
Since D129288, callbr is allowed to have duplicate successors. This patch removes a limitation which prevents optimizations from actually producing such callbrs.
This is probably the riskiest of all the recent callbr changes, because code with incorrect assumptions might be lurking somewhere. I fixed the one case I encountered ahead of time in https://github.com/llvm/llvm-project/commit/8201e3ef5c84561260218bc041209611aac690e3.
Reviewed By: nickdesaulniers
Differential Revision: https://reviews.llvm.org/D129997
Originally landed as
commit 08860f525a23 ("[Local] Allow creating callbr with duplicate successors")
Reverted in
commit 1cf6b93df168 ("Revert "[Local] Allow creating callbr with duplicate successors"")
Diffstat (limited to 'llvm/lib/Object/WasmObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions