diff --git a/lib/Passes/PassBuilder.cpp b/lib/Passes/PassBuilder.cpp index cd64aecd81d..03b31c23336 100644 --- a/lib/Passes/PassBuilder.cpp +++ b/lib/Passes/PassBuilder.cpp @@ -2787,6 +2787,9 @@ Error PassBuilder::parseAAPipeline(AAManager &AA, StringRef PipelineText) { } bool PassBuilder::isAAPassName(StringRef PassName) { +#define MODULE_ALIAS_ANALYSIS(NAME, CREATE_PASS) \ + if (PassName == NAME) \ + return true; #define FUNCTION_ALIAS_ANALYSIS(NAME, CREATE_PASS) \ if (PassName == NAME) \ return true; diff --git a/test/Analysis/GlobalsModRef/comdat-ipo.ll b/test/Analysis/GlobalsModRef/comdat-ipo.ll index f251e01ca69..aeeebfd3aed 100644 --- a/test/Analysis/GlobalsModRef/comdat-ipo.ll +++ b/test/Analysis/GlobalsModRef/comdat-ipo.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -basic-aa -globals-aa -gvn -S | FileCheck %s +; RUN: opt < %s -basic-aa -globals-aa -gvn -enable-new-pm=0 -S | FileCheck %s +; RUN: opt < %s -basic-aa -globals-aa -gvn -enable-new-pm=1 -S | FileCheck %s ; See PR26774