[llvm] [bpi] Reuse the AsmWriter's BB naming scheme (PR #73593)

Jeremy Morse via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 30 03:05:53 PST 2023


================
@@ -0,0 +1,25 @@
+; RUN: opt < %s -passes='print<branch-prob>' -disable-output 2>&1 | FileCheck %s
+
+define void @fct() {
+; CHECK: fct
+entry:
+  br label %0
+0:
+  br label %1
+1:
+  ret void
+}
+
+; CHECK: edge entry -> 0
+; CHECK: edge 0 -> 1
+
+define void @fct2() {
+; CHECK: fct2
----------------
jmorse wrote:

CHECK-LABEL would likely make errors easier to localise.

https://github.com/llvm/llvm-project/pull/73593


More information about the llvm-commits mailing list