diff options
| author | Matthias Braun <matze@braunis.de> | 2016-04-28 23:42:51 +0000 |
|---|---|---|
| committer | Matthias Braun <matze@braunis.de> | 2016-04-28 23:42:51 +0000 |
| commit | f84547c6e0ec638cdfe7367572cd5d57712ea0b9 (patch) | |
| tree | 2f6ee90df77d099746ccb280c79aeb8186167a7a /llvm/lib/CodeGen/PHIElimination.cpp | |
| parent | 5baa2bc2e146ebf09a0c9d5bdaf82ab6d01144bc (diff) | |
| download | bcm5719-llvm-f84547c6e0ec638cdfe7367572cd5d57712ea0b9.tar.gz bcm5719-llvm-f84547c6e0ec638cdfe7367572cd5d57712ea0b9.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.
This re-applies r260806 with LiveVariables manually added to PowerPC to
hopefully not break the stage 2 bots this time.
llvm-svn: 267954
Diffstat (limited to 'llvm/lib/CodeGen/PHIElimination.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/PHIElimination.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/PHIElimination.cpp b/llvm/lib/CodeGen/PHIElimination.cpp index 9cbb318f0c8..c65a5a7100d 100644 --- a/llvm/lib/CodeGen/PHIElimination.cpp +++ b/llvm/lib/CodeGen/PHIElimination.cpp @@ -120,6 +120,7 @@ INITIALIZE_PASS_END(PHIElimination, "phi-node-elimination", "Eliminate PHI nodes for register allocation", false, false) void PHIElimination::getAnalysisUsage(AnalysisUsage &AU) const { + AU.addUsedIfAvailable<LiveVariables>(); AU.addPreserved<LiveVariables>(); AU.addPreserved<SlotIndexes>(); AU.addPreserved<LiveIntervals>(); |

