blob: c1ac478578f5d2596d54995fcb20939c1b26e4d5 [file]
; Check that, in the absence of dependencies, we emit an error message when
; trying to use ML-driven advisor.
; REQUIRES: !have_tf_aot
; REQUIRES: !have_tflite
; REQUIRES: default_triple
; RUN: not llc -O2 -regalloc-enable-priority-advisor=development < %s 2>&1 | FileCheck %s
; RUN: not llc -O2 -regalloc-enable-priority-advisor=release < %s 2>&1 | FileCheck %s
; RUN: llc -O2 -regalloc-enable-priority-advisor=default < %s 2>&1 | FileCheck %s --check-prefix=DEFAULT
; RUN: %if x86-registered-target %{ not llc -O2 -enable-new-pm -mtriple=x86_64-linux-unknown -regalloc-enable-priority-advisor=development < %s 2>&1 | FileCheck %s %}
; RUN: %if x86-registered-target %{ not llc -O2 -enable-new-pm -mtriple=x86_64-linux-unknown -regalloc-enable-priority-advisor=release < %s 2>&1 | FileCheck %s %}
; RUN: %if x86-registered-target %{ llc -O2 -enable-new-pm -mtriple=x86_64-linux-unknown -regalloc-enable-priority-advisor=default < %s 2>&1 | FileCheck %s --check-prefix=DEFAULT %}
; regalloc-enable-priority-advisor is not enabled for NVPTX
; UNSUPPORTED: target=nvptx{{.*}}
define void @f2(i64 %lhs, i64 %rhs, ptr %addr) {
%sum = add i64 %lhs, %rhs
store i64 %sum, ptr %addr
ret void
}
; CHECK: Requested regalloc priority advisor analysis could not be created. Using default
; DEFAULT-NOT: Requested regalloc priority advisor analysis could not be created. Using default