HomePhabricator

[Inline] Make sure the InlineAdvisor is correctly cleared.

Authored by mtrofin on Oct 11 2021, 4:43 PM.

Description

[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