llvm-project/llvm/test/CodeGen/MLRegalloc/dev-rel-equivalence.ll
Kazu Hirata 3442309138 [mlgo] Use have_tflite instead of have_tf_api
We are in the process of retiring LLVM_HAVE_TF_API in favor of
LLVM_HAVE_TFLITE.  This patch takes care of the transition in
llvm/test.

Differential Revision: https://reviews.llvm.org/D140133
2022-12-15 13:54:25 -08:00

21 lines
976 B
LLVM

; REQUIRES: have_tflite
; REQUIRES: llvm_raevict_model_autogenerated
; REQUIRES: x86_64-linux
;
; Check that the same model (==the autogenerated one) produces the same output
; regardless of how it's evaluated, which is different from the default
;
; RUN: llc -mtriple=x86_64-linux-unknown -regalloc=greedy -regalloc-enable-advisor=default \
; RUN: %S/Inputs/input.ll -o %t.default
; RUN: llc -mtriple=x86_64-linux-unknown -regalloc=greedy -regalloc-enable-advisor=release \
; RUN: %S/Inputs/input.ll -o %t.release
; RUN: rm -rf %t %t_savedmodel
; RUN: %python %S/../../../lib/Analysis/models/gen-regalloc-eviction-test-model.py %t_savedmodel
; RUN: %python %S/../../../lib/Analysis/models/saved-model-to-tflite.py %t_savedmodel %t
; RUN: llc -mtriple=x86_64-linux-unknown -regalloc=greedy -regalloc-enable-advisor=development \
; RUN: -regalloc-model=%t %S/Inputs/input.ll -o %t.development
; RUN: diff %t.release %t.development
; RUN: not diff %t.release %t.default