File tree 1 file changed +5
-0
lines changed
llvm/test/CodeGen/Generic 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 1
1
; RUN: llc < %s -print-after=finalize-isel -o /dev/null 2>&1 | FileCheck %s
2
+ ; RUN: llc %s -stop-after=finalize-isel -o - | llc -passes='print<machine-branch-prob>' -x mir -filetype=null 2>&1 | FileCheck -check-prefix=NPM %s
2
3
3
4
; Hexagon runs passes that renumber the basic blocks, causing this test
4
5
; to fail.
@@ -27,6 +28,10 @@ entry:
27
28
; CHECK: bb.6.entry:
28
29
; CHECK: successors: %bb.1(0x2e8ba2d7), %bb.3(0x51745d29)
29
30
31
+ ; NPM: Printing analysis 'Machine Branch Probability Analysis' for machine function 'test2':
32
+ ; NPM: edge %bb.4 -> %bb.6 probability is 0x80000000 / 0x80000000 = 100.00% [HOT edge]
33
+ ; NPM: edge %bb.5 -> %bb.6 probability is 0x80000000 / 0x80000000 = 100.00% [HOT edge]
34
+
30
35
sw.bb:
31
36
; this call will prevent simplifyCFG from optimizing the block away in ARM/AArch64.
32
37
tail call void @foo ()
You can’t perform that action at this time.
0 commit comments