llvm.org GIT mirror llvm / release_90 test / CodeGen / ARM / ifcvt_simple_bad_zero_prob_succ.mir
release_90

Tree @release_90 (Download .tar.gz)

ifcvt_simple_bad_zero_prob_succ.mir @release_90raw · history · blame

# RUN: llc -mtriple=arm-apple-ios -run-pass=if-converter %s -o - | FileCheck %s
---
name:            f1
body:             |
  bb.0:

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

  bb.2:

  bb.3:
    Bcc %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:     B %bb.1

#CHECK-NOT: bb.2: