
If another inlining session came after a ModuleInlinerWrapperPass, the advisor alanysis would still be cached, but its Result would be cleared. We need to clear both. This addresses PR52118 Differential Revision: https://reviews.llvm.org/D111586
10 lines
232 B
LLVM
10 lines
232 B
LLVM
; Test that the InlineAdvisor, upon being cleared, is re-created correctly.
|
|
; RUN: opt -S -passes="default<O1>,cgscc(inline)" < %s | FileCheck %s
|
|
|
|
define double @foo() local_unnamed_addr {
|
|
entry:
|
|
ret double undef
|
|
}
|
|
|
|
; CHECK: @foo
|