comparison test/CodeGen/ARM/taildup-branch-weight.ll @ 100:7d135dc70f03

LLVM 3.9
author Miyagi Mitsuki <e135756@ie.u-ryukyu.ac.jp>
date Tue, 26 Jan 2016 22:53:40 +0900
parents 60c9769439b8
children
comparison
equal deleted inserted replaced
96:6418606d0ead 100:7d135dc70f03
1 ; RUN: llc -mtriple=arm-eabi -print-machineinstrs=tailduplication -tail-dup-size=100 \ 1 ; RUN: llc -mtriple=arm-eabi -print-machineinstrs=tailduplication -tail-dup-size=100 \
2 ; RUN: -enable-tail-merge=false -disable-cgp %s -o /dev/null 2>&1 \ 2 ; RUN: -enable-tail-merge=false -disable-cgp %s -o /dev/null 2>&1 \
3 ; RUN: | FileCheck %s 3 ; RUN: | FileCheck %s
4 4
5 ; CHECK: Machine code for function test0: 5 ; CHECK: Machine code for function test0:
6 ; CHECK: Successors according to CFG: BB#1(4) BB#2(124) 6 ; CHECK: Successors according to CFG: BB#1({{[0-9a-fx/= ]+}}3.12%) BB#2({{[0-9a-fx/= ]+}}96.88%)
7 7
8 define void @test0(i32 %a, i32 %b, i32* %c, i32* %d) { 8 define void @test0(i32 %a, i32 %b, i32* %c, i32* %d) {
9 entry: 9 entry:
10 store i32 3, i32* %d 10 store i32 3, i32* %d
11 br label %B1 11 br label %B1
28 } 28 }
29 29
30 !0 = !{!"branch_weights", i32 4, i32 124} 30 !0 = !{!"branch_weights", i32 4, i32 124}
31 31
32 ; CHECK: Machine code for function test1: 32 ; CHECK: Machine code for function test1:
33 ; CHECK: Successors according to CFG: BB#1(8) BB#2(248) 33 ; CHECK: Successors according to CFG: BB#2(0x7c000000 / 0x80000000 = 96.88%) BB#1(0x04000000 / 0x80000000 = 3.12%)
34 34
35 @g0 = common global i32 0, align 4 35 @g0 = common global i32 0, align 4
36 36
37 define void @test1(i32 %a, i32 %b, i32* %c, i32* %d, i32* %e) { 37 define void @test1(i32 %a, i32 %b, i32* %c, i32* %d, i32* %e) {
38 38