summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/ARM/ifcvt_simple_bad_zero_prob_succ.mir
blob: 87d351d241b46dea6328e0801f7d09c7ca4591bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# RUN: llc -mtriple=thumbv7-apple-ios -run-pass=if-converter %s -o - | FileCheck %s
---
name:            f1
body:             |
  bb.0:

  bb.1:
    tBcc %bb.3, 0, $cpsr

  bb.2:

  bb.3:
    tBcc %bb.1, 0, $cpsr

  bb.4:
  successors: %bb.1
    tBRIND $r1, 14, _
...

# We should only get bb.1 as successor to bb.1. No zero percent probability
# edge from bb.1 to bb.2. There shouldn't even be a bb.2 at all.

# CHECK: body:             |
# CHECK:   bb.0:
# CHECK:     successors: %bb.1(0x80000000)

# CHECK:   bb.1:
# CHECK:     successors: %bb.1(0x80000000)
# CHECK-NOT: %bb.2(0x00000000)
# CHECK:     tBRIND $r1, 1, $cpsr
# CHECK:     t2B %bb.1

#CHECK-NOT: bb.2:
OpenPOWER on IntegriCloud