summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/RegAllocLinearScan.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-11-10 23:55:56 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-11-10 23:55:56 +0000
commit868dd4e66a7e2cc5d6a14ff0975d429703ec18a7 (patch)
tree79a788c80e7ce82ff17a2ca11c6bf569e78bedd2 /llvm/lib/CodeGen/RegAllocLinearScan.cpp
parent3bb7aab0b08d21b077bbace6385db281626a096e (diff)
downloadbcm5719-llvm-868dd4e66a7e2cc5d6a14ff0975d429703ec18a7.tar.gz
bcm5719-llvm-868dd4e66a7e2cc5d6a14ff0975d429703ec18a7.zip
Hook up AliasAnalysis in InlineSpiller. This is used for rematerializing
constant loads. llvm-svn: 118741
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocLinearScan.cpp')
-rw-r--r--llvm/lib/CodeGen/RegAllocLinearScan.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/RegAllocLinearScan.cpp b/llvm/lib/CodeGen/RegAllocLinearScan.cpp
index 947a6c74bd1..81b9070af29 100644
--- a/llvm/lib/CodeGen/RegAllocLinearScan.cpp
+++ b/llvm/lib/CodeGen/RegAllocLinearScan.cpp
@@ -15,6 +15,7 @@
#include "VirtRegMap.h"
#include "VirtRegRewriter.h"
#include "Spiller.h"
+#include "llvm/Analysis/AliasAnalysis.h"
#include "llvm/Function.h"
#include "llvm/CodeGen/CalcSpillWeights.h"
#include "llvm/CodeGen/LiveIntervalAnalysis.h"
@@ -193,6 +194,8 @@ namespace {
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
AU.setPreservesCFG();
+ AU.addRequired<AliasAnalysis>();
+ AU.addPreserved<AliasAnalysis>();
AU.addRequired<LiveIntervals>();
AU.addPreserved<SlotIndexes>();
if (StrongPHIElim)
@@ -391,6 +394,7 @@ INITIALIZE_PASS_DEPENDENCY(LiveStacks)
INITIALIZE_PASS_DEPENDENCY(MachineLoopInfo)
INITIALIZE_PASS_DEPENDENCY(VirtRegMap)
INITIALIZE_AG_DEPENDENCY(RegisterCoalescer)
+INITIALIZE_AG_DEPENDENCY(AliasAnalysis)
INITIALIZE_PASS_END(RALinScan, "linearscan-regalloc",
"Linear Scan Register Allocator", false, false)
OpenPOWER on IntegriCloud