[llvm] [SimplifyCFG] Don't limit the number of simultaneous forwards from switch condition (PR #95932)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 18 20:30:19 PDT 2024
================
@@ -18,7 +18,7 @@ bb3:
bb4:
br label %exit.sink.split
exit.sink.split:
- %.sink = phi i32 [ 5, %bb4 ], [ %b, %bb1 ], [ 3, %bb3 ], [ %a, %entry ]
+ %.sink = phi i32 [ 5, %bb4 ], [ %b, %bb1 ], [ 7, %bb3 ], [ %a, %entry ]
----------------
DianQK wrote:
Because `%bb3` happens to meet this optimization condition, changing it to another value can prevent this test case from being affected.
See:
https://github.com/llvm/llvm-project/blob/bdc0afc87181d4f7ab8aad2da6fa70a1204f0a84/llvm/test/CodeGen/AArch64/arm64-jumptable.ll#L10-L21
https://github.com/llvm/llvm-project/pull/95932
More information about the llvm-commits
mailing list