[NewPM][opt] Fix -globals-aa not being recognized as alias analysis in NPM
authorArthur Eubanks <aeubanks@google.com>
Tue, 15 Sep 2020 01:35:12 +0000 (18:35 -0700)
committerArthur Eubanks <aeubanks@google.com>
Tue, 15 Sep 2020 18:18:19 +0000 (11:18 -0700)
commit3f69b2140f55ace97c3b7819eb9c19fc682da998
treece290af9e76b3ffde9f1f0e2a46429ea636fc8ca
parente0c7641de65fb4dc27fcc44b2e4f2cd570e58bed
[NewPM][opt] Fix -globals-aa not being recognized as alias analysis in NPM

Was missing MODULE_ALIAS_ANALYSIS, previously only FUNCTION_ALIAS_ANALYSIS was taken into account.

Reviewed By: asbirlea

Differential Revision: https://reviews.llvm.org/D87664
llvm/lib/Passes/PassBuilder.cpp
llvm/test/Analysis/GlobalsModRef/comdat-ipo.ll