diff options
author | Dan Gohman <gohman@apple.com> | 2009-07-31 18:16:33 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-07-31 18:16:33 +0000 |
commit | 5ea74d55ce5f54076cbfc30641ec0a052b5c71a2 (patch) | |
tree | a260b4c3cc543ef0041e9d6e20e476e4a9e5bf7d /llvm/lib/CodeGen/LiveVariables.cpp | |
parent | cd4c338437bef03a4d504da84b1763b080777307 (diff) | |
download | llvm-5ea74d55ce5f54076cbfc30641ec0a052b5c71a2.zip llvm-5ea74d55ce5f54076cbfc30641ec0a052b5c71a2.tar.gz llvm-5ea74d55ce5f54076cbfc30641ec0a052b5c71a2.tar.bz2 |
Reapply r77654 with a fix: MachineFunctionPass's getAnalysisUsage
shouldn't do AU.setPreservesCFG(), because even though CodeGen passes
don't modify the LLVM IR CFG, they may modify the MachineFunction CFG,
and passes like MachineLoop are registered with isCFGOnly set to true.
llvm-svn: 77691
Diffstat (limited to 'llvm/lib/CodeGen/LiveVariables.cpp')
-rw-r--r-- | llvm/lib/CodeGen/LiveVariables.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/LiveVariables.cpp b/llvm/lib/CodeGen/LiveVariables.cpp index bb72d80..2034566 100644 --- a/llvm/lib/CodeGen/LiveVariables.cpp +++ b/llvm/lib/CodeGen/LiveVariables.cpp @@ -48,6 +48,7 @@ static RegisterPass<LiveVariables> X("livevars", "Live Variable Analysis"); void LiveVariables::getAnalysisUsage(AnalysisUsage &AU) const { AU.addRequiredID(UnreachableMachineBlockElimID); AU.setPreservesAll(); + MachineFunctionPass::getAnalysisUsage(AU); } void LiveVariables::VarInfo::dump() const { |