mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
32875af6e3
Summary: Currently fast-isel-abort will only abort for regular instructions, and just warn for function calls, terminators, function arguments. There is already fast-isel-abort-args but nothing for calls and terminators. This change turns the fast-isel-abort options into an integer option, so that multiple levels of strictness can be defined. This will help no being surprised when the "abort" option indeed does not abort, and enables the possibility to write test that verifies that no intrinsics are forgotten by fast-isel. Reviewers: resistor, echristo Subscribers: jfb, llvm-commits Differential Revision: http://reviews.llvm.org/D7941 From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 230775
20 lines
640 B
LLVM
20 lines
640 B
LLVM
; RUN: llc -mtriple=arm64-apple-darwin -aarch64-atomic-cfg-tidy=0 -verify-machineinstrs < %s | FileCheck %s
|
|
; RUN: llc -mtriple=arm64-apple-darwin -aarch64-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}
|