xref: /llvm-project/llvm/test/CodeGen/MLRegAlloc/default-priority-advisor.ll (revision 65b40f273f09a53f61a13ac6f4bb65ec4ac63d6e)
1; Check that, in the absence of dependencies, we emit an error message when
2; trying to use ML-driven advisor.
3; REQUIRES: !have_tf_aot
4; REQUIRES: !have_tflite
5; REQUIRES: default_triple
6; RUN: not llc -O2 -regalloc-enable-priority-advisor=development < %s 2>&1 | FileCheck %s
7; RUN: not llc -O2 -regalloc-enable-priority-advisor=release < %s 2>&1 | FileCheck %s
8; RUN: llc -O2 -regalloc-enable-priority-advisor=default < %s 2>&1 | FileCheck %s --check-prefix=DEFAULT
9
10; regalloc-enable-priority-advisor is not enabled for NVPTX
11; UNSUPPORTED: target=nvptx{{.*}}
12
13define void @f2(i64 %lhs, i64 %rhs, i64* %addr) {
14  %sum = add i64 %lhs, %rhs
15  store i64 %sum, i64* %addr
16  ret void
17}
18
19; CHECK: Requested regalloc priority advisor analysis could be created. Using default
20; DEFAULT-NOT: Requested regalloc priority advisor analysis could be created. Using default
21