Skip to content

Commit a4765c6

Browse files
committed
[mlgo] Fix state-tracking-coro.ll test
Post #68263, the inline advisor printer tries to print SCC Nodes' names, but if we perform a full pipeline (like O1), there'll be some DCE-ing happening and the Node pointers kept in the advisor for this (printing) purpose are dangling. Using the more eager printer post each scc inline pass is sufficient.
1 parent c6ed5a6 commit a4765c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/test/Transforms/Inline/ML/state-tracking-coro.ll

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
; Based on llvm/test/Transforms/Coroutines/coro-split-02.ll
22
; Corosplit will keep f1 and add 3 more functions.
33
; RUN: opt -passes='default<O1>,print<inline-advisor>' -training-log=/dev/null \
4-
; RUN: -S -enable-ml-inliner=development -keep-inline-advisor-for-printing < %s 2>&1 | FileCheck %s
4+
; RUN: -S -enable-ml-inliner=development -enable-scc-inline-advisor-printing < %s 2>&1 | FileCheck %s
55
; REQUIRES: have_tflite
66
;
7+
; CHECK: [MLInlineAdvisor] Nodes: 1 Edges: 0
78
; CHECK: [MLInlineAdvisor] Nodes: 4 Edges: 0
89

910
%"struct.std::coroutine_handle" = type { ptr }

0 commit comments

Comments
 (0)