mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
5efe040582
Initialize all AArch64-specific passes in the TargetMachine so they can be run by llc. This can lead to conflicts in opt with some command line options that share the same name as the pass, so I took this opportunity to do some cleanups: * rename all relevant command line options from "aarch64-blah" to "aarch64-enable-blah" and update the tests accordingly * run clang-format on their declarations * move all these declarations to a common place (the TargetMachine) as opposed to having them scattered around (AArch64BranchRelaxation and AArch64AddressTypePromotion were the only offenders) llvm-svn: 277322
20 lines
656 B
LLVM
20 lines
656 B
LLVM
; RUN: llc -mtriple=arm64-apple-darwin -aarch64-enable-atomic-cfg-tidy=0 -verify-machineinstrs < %s | FileCheck %s
|
|
; RUN: llc -mtriple=arm64-apple-darwin -aarch64-enable-atomic-cfg-tidy=0 -fast-isel -fast-isel-abort=1 -verify-machineinstrs < %s | FileCheck %s
|
|
|
|
; Test if the BBs are reordred according to their branch weights.
|
|
define i64 @branch_weights_test(i64 %a, i64 %b) {
|
|
; CHECK-LABEL: branch_weights_test
|
|
; CHECK-LABEL: success
|
|
; CHECK-LABEL: fail
|
|
%1 = icmp ult i64 %a, %b
|
|
br i1 %1, label %fail, label %success, !prof !0
|
|
|
|
fail:
|
|
ret i64 -1
|
|
|
|
success:
|
|
ret i64 0
|
|
}
|
|
|
|
!0 = !{!"branch_weights", i32 0, i32 2147483647}
|