summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2016-02-13 04:35:31 +0000
committerMatthias Braun <matze@braunis.de>2016-02-13 04:35:31 +0000
commitbbb528f1892b2ae78cf08a3e699deb4e0481b413 (patch)
treed29fb4a3a68ae669f2d8b5dbcd8094393eb36f6a /llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
parentf2ddbf00ede6e23279b509371c15011f00db56a0 (diff)
downloadbcm5719-llvm-bbb528f1892b2ae78cf08a3e699deb4e0481b413.tar.gz
bcm5719-llvm-bbb528f1892b2ae78cf08a3e699deb4e0481b413.zip
LiveIntervalAnalysis: Remove LiveVariables requirement
This requirement was a huge hack to keep LiveVariables alive because it was optionally used by TwoAddressInstructionPass and PHIElimination. However we have AnalysisUsage::addUsedIfAvailable() which we can use in those passes. llvm-svn: 260806
Diffstat (limited to 'llvm/lib/CodeGen/TwoAddressInstructionPass.cpp')
-rw-r--r--llvm/lib/CodeGen/TwoAddressInstructionPass.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
index e8009cc8337..379de8836de 100644
--- a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
+++ b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
@@ -157,6 +157,7 @@ public:
void getAnalysisUsage(AnalysisUsage &AU) const override {
AU.setPreservesCFG();
AU.addRequired<AAResultsWrapperPass>();
+ AU.addUsedIfAvailable<LiveVariables>();
AU.addPreserved<LiveVariables>();
AU.addPreserved<SlotIndexes>();
AU.addPreserved<LiveIntervals>();
OpenPOWER on IntegriCloud