Files
clang-p2996/llvm/test/Transforms/Inline/ML/dev-mode-log-deleted.ll
Mircea Trofin 5898be19e6 [mlgo] Remove the protobuf dependency
The dependency was due to the log format. This change switches to the
previously-introduced (D139370) "dependency-free" logger instead of the
protobuf-based one.

A subsequent change will clean out the unnecessary abstraction left
behind.

This change drops the logger unittest, we have sufficient test coverage
via lit tests, and a unit test would require adding, unnecesarily, a log
reader (the reader is expected to be python, for the ML side, and there
is a reader for that under Analysis/models, used for tests).

Differential Revision: https://reviews.llvm.org/D141720
2023-01-17 13:12:27 -08:00

25 lines
576 B
LLVM

; REQUIRES: have_tflite
; RUN: opt -enable-ml-inliner=development -passes=scc-oz-module-inliner \
; RUN: -training-log=%t -S < %s
; RUN: %python %S/../../../../lib/Analysis/models/log_reader.py %t | FileCheck %s
define i32 @top() {
%a = call i32 @to_be_deleted()
%b = call i32 @externally_visible()
%ret = add i32 %a, %b
ret i32 %ret
}
define internal i32 @to_be_deleted() {
ret i32 1
}
define i32 @externally_visible() {
ret i32 2
}
; CHECK: observation: 0
; CHECK: inlining_decision: 1
; CHECK: observation: 1
; CHECK: inlining_decision: 1