brintos

brintos / llvm-project-archived public Read only

0
0
Text · 656 B · c749e4d Raw
20 lines · plain
1; RUN: llc -mtriple=arm64-apple-darwin -aarch64-enable-atomic-cfg-tidy=0                               -verify-machineinstrs < %s | FileCheck %s2; RUN: llc -mtriple=arm64-apple-darwin -aarch64-enable-atomic-cfg-tidy=0 -fast-isel -fast-isel-abort=1 -verify-machineinstrs < %s | FileCheck %s3 4; Test if the BBs are reordred according to their branch weights.5define i64 @branch_weights_test(i64 %a, i64 %b) {6; CHECK-LABEL: branch_weights_test7; CHECK-LABEL: success8; CHECK-LABEL: fail9  %1 = icmp ult i64 %a, %b10  br i1 %1, label %fail, label %success, !prof !011 12fail:13  ret i64 -114 15success:16  ret i64 017}18 19!0 = !{!"branch_weights", i32 0, i32 2147483647}20