34 lines · plain
1; REQUIRES: have_tflite2; REQUIRES: x86_64-linux3;4; Check that we can log more than 1 function.5;6; RUN: llc -mtriple=x86_64-linux-unknown -regalloc=greedy -regalloc-enable-advisor=development \7; RUN: -regalloc-training-log=%t1 < %s8; RUN: FileCheck --input-file %t1 %s9 10; RUN: llc -mtriple=x86_64-linux-unknown -regalloc=greedy -regalloc-enable-priority-advisor=development \11; RUN: -regalloc-priority-training-log=%t2 < %s12; RUN: FileCheck --input-file %t2 %s13 14declare void @f();15 16define void @f1(i64 %lhs, i64 %rhs, i64* %addr) {17 ret void18}19 20define void @f2(i64 %lhs, i64 %rhs, i64* %addr) {21 %sum = add i64 %lhs, %rhs22 call void @f();23 store i64 %sum, i64* %addr24 ret void25}26 27define void @f3(i64 %lhs, i64 %rhs, i64* %addr) {28 ret void29}30 31; CHECK-NOT: {"context":"f1"}32; CHECK: {"context":"f2"}33; CHECK-NOT: {"context":"f3"}34