summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/ARM/ifcvt_triangleSameCvtNext.mir
blob: d37aba2e82a51abe96554564eb8f6444290dc537 (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
# RUN: llc -mtriple=thumbv7-apple-ios -run-pass=if-converter -verify-machineinstrs %s -o - | FileCheck %s
...
---
name:            foo
body:             |
  bb.0:
    tBcc %bb.2, 1, $cpsr

  bb.1:
    $sp = tADDspi $sp, 2, 14, _
    tB %bb.1, 14, $noreg

  bb.2:
    tBcc %bb.3, 0, $cpsr
    tB %bb.2, 14, $noreg

  bb.3:
    tBcc %bb.1, 1, $cpsr
    tB %bb.1, 14, $noreg
...

# Both branches in bb.3 jump to bb.1. IfConversion shouldn't treat this as a
# tringle and insert the tADDspi in bb3, but leave it as it is.

# CHECK:     bb.3:
# CHECK:       successors: %bb.1
# CHECK-NOT:   tADDspi
# CHECK:       Bcc %bb.1, 1, $cpsr
# CHECK:       B %bb.1
OpenPOWER on IntegriCloud