1; REQUIRES: have_tf_api 2; REQUIRES: x86_64-linux 3; 4; Check that we log correctly, both with a learned policy, and the default policy 5; 6; RUN: llc -mtriple=x86_64-linux-unknown -regalloc=greedy -regalloc-enable-advisor=development \ 7; RUN: -regalloc-training-log=%t1 -tfutils-text-log < %S/Inputs/input.ll 8; RUN: sed -i 's/ \+/ /g' %t1 9; RUN: sed -i 's/\\n key:/\n key:/g' %t1 10; RUN: sed -i 's/\\n feature/\n feature/g' %t1 11; RUN: sed -i 's/\\n/ /g' %t1 12; RUN: FileCheck --input-file %t1 %s --check-prefixes=CHECK,NOML 13; RUN: diff %t1 %S/Inputs/reference-log-noml.txt 14 15; RUN: rm -rf %t && mkdir %t 16; RUN: %python %S/../../../lib/Analysis/models/gen-regalloc-eviction-test-model.py %t 17; RUN: llc -mtriple=x86_64-linux-unknown -regalloc=greedy -regalloc-enable-advisor=development \ 18; RUN: -regalloc-training-log=%t2 -tfutils-text-log -regalloc-model=%t < %S/Inputs/input.ll 19; RUN: sed -i 's/ \+/ /g' %t2 20; RUN: sed -i 's/\\n key:/\n key:/g' %t2 21; RUN: sed -i 's/\\n feature/\n feature/g' %t2 22; RUN: sed -i 's/\\n/ /g' %t2 23; RUN: FileCheck --input-file %t2 %s --check-prefixes=CHECK,ML 24 25; CHECK-NOT: nan 26; CHECK-LABEL: key: \"index_to_evict\" 27; CHECK-NEXT: value: 9 28; ML-NEXT: value: 9 29; NOML-NEXT: value: 32 30; CHECK-LABEL: key: \"reward\" 31; ML: value: 36.90 32; NOML: value: 36.64 33; CHECK-NEXT: feature_list 34; CHECK-NEXT: key: \"start_bb_freq_by_max\" 35