Mircea Trofin ea4a6c8426 [Inline] Make sure the InlineAdvisor is correctly cleared.
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
2021-10-12 10:42:41 -07:00

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