LiveIntervalAnalysis: Remove LiveVariables requirement
authorMatthias Braun <matze@braunis.de>
Thu, 28 Apr 2016 23:42:51 +0000 (23:42 +0000)
committerMatthias Braun <matze@braunis.de>
Thu, 28 Apr 2016 23:42:51 +0000 (23:42 +0000)
commitf84547c6e0ec638cdfe7367572cd5d57712ea0b9
tree2f6ee90df77d099746ccb280c79aeb8186167a7a
parent5baa2bc2e146ebf09a0c9d5bdaf82ab6d01144bc
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
llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
llvm/lib/CodeGen/PHIElimination.cpp
llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
llvm/lib/Target/PowerPC/PPCTargetMachine.cpp