llvm-project/llvm/test/CodeGen/MLRegAlloc/default-priority-advisor.ll
Matt Arsenault 56ce7ed72b
llvm: Convert some assorted lit tests to opaque pointers (#174564)
Some of the MIR test hit a bug where it errors if there is a
raw global reference as the referenced value. Worked around some
of those by just keeping a no-op bitcast constant expression.
2026-01-06 11:41:27 +00:00

21 lines
862 B
LLVM

; 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
; 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 be created. Using default
; DEFAULT-NOT: Requested regalloc priority advisor analysis could be created. Using default