[PATCH] D82607: [NewPM][BasicAA] Rename basicaa -> basic-aa, add alias
Arthur Eubanks via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 25 17:29:40 PDT 2020
aeubanks updated this revision to Diff 273560.
aeubanks marked an inline comment as done.
aeubanks added a comment.
Remove include left over from previous work
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D82607/new/
https://reviews.llvm.org/D82607
Files:
llvm/include/llvm/IR/LegacyPassNameParser.h
llvm/lib/Analysis/BasicAliasAnalysis.cpp
llvm/test/Analysis/BasicAA/empty.ll
Index: llvm/test/Analysis/BasicAA/empty.ll
===================================================================
--- llvm/test/Analysis/BasicAA/empty.ll
+++ llvm/test/Analysis/BasicAA/empty.ll
@@ -1,4 +1,5 @@
; RUN: opt < %s -basicaa -aa-eval -print-all-alias-modref-info -disable-output 2>&1 | FileCheck %s
+; RUN: opt < %s -basic-aa -aa-eval -print-all-alias-modref-info -disable-output 2>&1 | FileCheck %s
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
Index: llvm/lib/Analysis/BasicAliasAnalysis.cpp
===================================================================
--- llvm/lib/Analysis/BasicAliasAnalysis.cpp
+++ llvm/lib/Analysis/BasicAliasAnalysis.cpp
@@ -2069,13 +2069,13 @@
void BasicAAWrapperPass::anchor() {}
-INITIALIZE_PASS_BEGIN(BasicAAWrapperPass, "basicaa",
+INITIALIZE_PASS_BEGIN(BasicAAWrapperPass, "basic-aa",
"Basic Alias Analysis (stateless AA impl)", true, true)
INITIALIZE_PASS_DEPENDENCY(AssumptionCacheTracker)
INITIALIZE_PASS_DEPENDENCY(DominatorTreeWrapperPass)
INITIALIZE_PASS_DEPENDENCY(TargetLibraryInfoWrapperPass)
INITIALIZE_PASS_DEPENDENCY(PhiValuesWrapperPass)
-INITIALIZE_PASS_END(BasicAAWrapperPass, "basicaa",
+INITIALIZE_PASS_END(BasicAAWrapperPass, "basic-aa",
"Basic Alias Analysis (stateless AA impl)", true, true)
FunctionPass *llvm::createBasicAAWrapperPass() {
Index: llvm/include/llvm/IR/LegacyPassNameParser.h
===================================================================
--- llvm/include/llvm/IR/LegacyPassNameParser.h
+++ llvm/include/llvm/IR/LegacyPassNameParser.h
@@ -73,6 +73,11 @@
llvm_unreachable(nullptr);
}
addLiteralOption(P->getPassArgument().data(), P, P->getPassName().data());
+
+ // Temporary alias for basicaa -> basic-aa
+ // TODO: remove once everything is migrated to basic-aa
+ if (P->getPassArgument() == "basic-aa")
+ addLiteralOption("basicaa", P, "deprecated alias for basic-aa");
}
void passEnumerate(const PassInfo *P) override { passRegistered(P); }
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82607.273560.patch
Type: text/x-patch
Size: 2147 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200626/a9af00c4/attachment.bin>
More information about the llvm-commits
mailing list