29 lines · plain
1; REQUIRES: have_tflite2; REQUIRES: x86_64-linux3;4; Check that we log correctly, both with a learned policy, and the default policy5;6; RUN: llc -o /dev/null -mtriple=x86_64-linux-unknown -regalloc=greedy \7; RUN: -regalloc-enable-priority-advisor=development \8; RUN: -regalloc-priority-training-log=%t1 \9; RUN: < %S/Inputs/input.ll10; RUN: %python %S/../../../lib/Analysis/models/log_reader.py %t1 > %t1.readable11; RUN: FileCheck --input-file %t1.readable %s --check-prefixes=CHECK,NOML12; RUN: diff %t1.readable %S/Inputs/reference-prio-log-noml.txt13 14; RUN: rm -rf %t && mkdir %t15; RUN: %python %S/../../../lib/Analysis/models/gen-regalloc-priority-test-model.py %t_savedmodel16; RUN: %python %S/../../../lib/Analysis/models/saved-model-to-tflite.py %t_savedmodel %t17; RUN: llc -o /dev/null -mtriple=x86_64-linux-unknown -regalloc=greedy \18; RUN: -regalloc-enable-priority-advisor=development \19; RUN: -regalloc-priority-training-log=%t2 \20; RUN: -regalloc-priority-model=%t < %S/Inputs/input.ll21; RUN: %python %S/../../../lib/Analysis/models/log_reader.py %t2 > %t2.readable22; RUN: FileCheck --input-file %t2.readable %s --check-prefixes=CHECK,ML23 24; CHECK-NOT: nan25; CHECK-LABEL: priority:26; NOML-SAME: 2684358144.027; ML-SAME: 353528; CHECK-LABEL: reward:29