[llvm] [JumpThreading] Thread over BB with only an unconditional branch (PR #86312)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 16 01:17:09 PDT 2024
================
@@ -21,7 +21,7 @@ declare void @quux()
; booleans where at least one operand is true/false/undef.
;.
-; CHECK: @[[ANCHOR:[a-zA-Z0-9_$"\\.-]+]] = constant [3 x ptr] [ptr blockaddress(@test_indirectbr, [[L1:%.*]]), ptr inttoptr (i32 1 to ptr), ptr blockaddress(@test_indirectbr, [[L3:%.*]])]
+; CHECK-BPI: @anchor = constant [3 x ptr] [ptr blockaddress(@test_indirectbr, %L1), ptr inttoptr (i32 1 to ptr), ptr blockaddress(@test_indirectbr, %L3)]
----------------
nikic wrote:
It looks like this is somehow related to the debug output. I think you can modify the RUN lines to look like this:
```
; RUN: opt -S -passes="jump-threading" < %s 2>&1 | FileCheck %s
; RUN: opt -S -passes="require<branch-prob>,jump-threading" -debug-only=branch-prob -disable-output < %s 2>&1 | FileCheck -check-prefix=CHECK-BPI %s
```
https://github.com/llvm/llvm-project/pull/86312
More information about the llvm-commits
mailing list