Add ExternalAAWrapperPass to createLegacyPMAAResults.
authorNeil Henning <neil.henning@unity3d.com>
Wed, 11 Dec 2019 13:20:42 +0000 (13:20 +0000)
committerNeil Henning <neil.henning@unity3d.com>
Mon, 6 Jan 2020 08:50:18 +0000 (08:50 +0000)
commit103a58c8f2b0a62a42f6eedcdef38222ff22a538
treeef2ee3bcc73949980b0de9b136e208dc6adf3a68
parentc5fb73c5d1b3f1adb77d99fc85c594b48bff08f9
Add ExternalAAWrapperPass to createLegacyPMAAResults.

Our out-of-tree custom aliasing solution for the HPC# Burst compiler
here at Unity makes use of the `ExternalAAwrapperPass` infrastructure to
insert our custom aliasing resolution into the core of LLVM. This is
great for all cases except for function inlining, where because
`createLegacyPMAAResults` does not make use of `ExternalAAWrapperPass`,
when we have a definite no-alias result within a function it won't be
propagated to the calling function during inlining.

This commit just rectifies this oversight by adding the missing
dependency.

Differential Revision: https://reviews.llvm.org/D71348
llvm/lib/Analysis/AliasAnalysis.cpp