brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1000 B · c63c691 Raw
54 lines · plain
1; RUN: llc < %s -mtriple=arm-eabi -stop-after=tailduplication -tail-dup-size=100 \2; RUN:      -enable-tail-merge=false -disable-cgp | FileCheck %s3 4; CHECK: name:            test05; CHECK: successors: %bb.1(0x04000000), %bb.2(0x7c000000)6 7define void @test0(i32 %a, i32 %b, ptr %c, ptr %d) {8entry:9  store i32 3, ptr %d10  br label %B111 12B2:13  store i32 2, ptr %c14  br label %B415 16B3:17  store i32 2, ptr %c18  br label %B419 20B1:21  store i32 1, ptr %d22  %test0 = icmp slt i32 %a, %b23  br i1 %test0, label %B2, label %B3, !prof !024 25B4:26  ret void27}28 29!0 = !{!"branch_weights", i32 4, i32 124}30 31; CHECK: name:            test132; CHECK: successors: %bb.2(0x7c000000), %bb.1(0x04000000)33 34@g0 = common global i32 0, align 435 36define void @test1(i32 %a, i32 %b, ptr %c, ptr %d, ptr %e) {37 38  %test0 = icmp slt i32 %a, %b39  br i1 %test0, label %B1, label %B2, !prof !140 41B1:42  br label %B343 44B2:45  store i32 2, ptr %c46  br label %B347 48B3:49  store i32 3, ptr %e50  ret void51}52 53!1 = !{!"branch_weights", i32 248, i32 8}54