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/PrologEpilogInserter.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/PrologEpilogInserter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/PrologEpilogInserter.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/PrologEpilogInserter.cpp b/llvm/lib/CodeGen/PrologEpilogInserter.cpp index 5aa37c9..9d5c55b 100644 --- a/llvm/lib/CodeGen/PrologEpilogInserter.cpp +++ b/llvm/lib/CodeGen/PrologEpilogInserter.cpp @@ -111,7 +111,6 @@ bool PEI::runOnMachineFunction(MachineFunction &Fn) { #if 0 void PEI::getAnalysisUsage(AnalysisUsage &AU) const { - AU.setPreservesCFG(); if (ShrinkWrapping || ShrinkWrapFunc != "") { AU.addRequired<MachineLoopInfo>(); AU.addRequired<MachineDominatorTree>(); |