mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-27 21:50:40 +00:00
Reference RegionPass to stop it being eliminated.
Contributed by: ether git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117263 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
05897c8f26
commit
d8c5ec6aec
@ -21,6 +21,7 @@
|
||||
#include "llvm/Analysis/IntervalPartition.h"
|
||||
#include "llvm/Analysis/Passes.h"
|
||||
#include "llvm/Analysis/PostDominators.h"
|
||||
#include "llvm/Analysis/RegionPass.h"
|
||||
#include "llvm/Analysis/RegionPrinter.h"
|
||||
#include "llvm/Analysis/ScalarEvolution.h"
|
||||
#include "llvm/Analysis/Lint.h"
|
||||
@ -151,6 +152,8 @@ namespace {
|
||||
(void)new llvm::FindUsedTypes();
|
||||
(void)new llvm::ScalarEvolution();
|
||||
((llvm::Function*)0)->viewCFGOnly();
|
||||
llvm::RGPassManager RGM(0);
|
||||
((llvm::RegionPass*)0)->runOnRegion((llvm::Region*)0, RGM);
|
||||
llvm::AliasSetTracker X(*(llvm::AliasAnalysis*)0);
|
||||
X.add((llvm::Value*)0, 0, 0); // for -print-alias-sets
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user