[PATCH] D87664: [NewPM][opt] Fix -globals-aa not being recognized as alias analysis in NPM
Arthur Eubanks via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 15 11:18:50 PDT 2020
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG3f69b2140f55: [NewPM][opt] Fix -globals-aa not being recognized as alias analysis in NPM (authored by aeubanks).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D87664/new/
https://reviews.llvm.org/D87664
Files:
llvm/lib/Passes/PassBuilder.cpp
llvm/test/Analysis/GlobalsModRef/comdat-ipo.ll
Index: llvm/test/Analysis/GlobalsModRef/comdat-ipo.ll
===================================================================
--- llvm/test/Analysis/GlobalsModRef/comdat-ipo.ll
+++ llvm/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
Index: llvm/lib/Passes/PassBuilder.cpp
===================================================================
--- llvm/lib/Passes/PassBuilder.cpp
+++ llvm/lib/Passes/PassBuilder.cpp
@@ -2787,6 +2787,9 @@
}
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;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87664.291981.patch
Type: text/x-patch
Size: 1103 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200915/22e4db84/attachment.bin>
More information about the llvm-commits
mailing list