mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-29 14:20:29 +00:00
[PM/AA] Wire up TBAA to the new pass manager's registry and test it.
llvm-svn: 261411
This commit is contained in:
parent
0b3be566d6
commit
c495d89da2
@ -29,6 +29,7 @@
|
||||
#include "llvm/Analysis/ScopedNoAliasAA.h"
|
||||
#include "llvm/Analysis/TargetLibraryInfo.h"
|
||||
#include "llvm/Analysis/TargetTransformInfo.h"
|
||||
#include "llvm/Analysis/TypeBasedAliasAnalysis.h"
|
||||
#include "llvm/IR/Dominators.h"
|
||||
#include "llvm/IR/IRPrintingPasses.h"
|
||||
#include "llvm/IR/PassManager.h"
|
||||
|
@ -72,6 +72,7 @@ FUNCTION_ALIAS_ANALYSIS("basic-aa", BasicAA())
|
||||
FUNCTION_ALIAS_ANALYSIS("cfl-aa", CFLAA())
|
||||
FUNCTION_ALIAS_ANALYSIS("scev-aa", SCEVAA())
|
||||
FUNCTION_ALIAS_ANALYSIS("scoped-noalias-aa", ScopedNoAliasAA())
|
||||
FUNCTION_ALIAS_ANALYSIS("type-based-aa", TypeBasedAA())
|
||||
#undef FUNCTION_ALIAS_ANALYSIS
|
||||
#undef FUNCTION_ANALYSIS
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
; RUN: opt < %s -tbaa -basicaa -aa-eval -evaluate-aa-metadata -print-no-aliases -print-may-aliases -disable-output 2>&1 | FileCheck %s
|
||||
; RUN: opt < %s -aa-pipeline=type-based-aa,basic-aa -passes=aa-eval -evaluate-aa-metadata -print-no-aliases -print-may-aliases -disable-output 2>&1 | FileCheck %s
|
||||
|
||||
; Generated with "clang -cc1 -disable-llvm-optzns -O1 -emit-llvm"
|
||||
; #include <new>
|
||||
|
Loading…
Reference in New Issue
Block a user