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/Target/CellSPU/SPUISelDAGToDAG.cpp | |
| parent | cd4c338437bef03a4d504da84b1763b080777307 (diff) | |
| download | bcm5719-llvm-5ea74d55ce5f54076cbfc30641ec0a052b5c71a2.tar.gz bcm5719-llvm-5ea74d55ce5f54076cbfc30641ec0a052b5c71a2.zip | |
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/Target/CellSPU/SPUISelDAGToDAG.cpp')
| -rw-r--r-- | llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp b/llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp index d29ddaac4b3..cca52883ffc 100644 --- a/llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp +++ b/llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp @@ -253,10 +253,10 @@ namespace { SPUtli(*tm.getTargetLowering()) { } - virtual bool runOnFunction(Function &Fn) { + virtual bool runOnMachineFunction(MachineFunction &MF) { // Make sure we re-emit a set of the global base reg if necessary GlobalBaseReg = 0; - SelectionDAGISel::runOnFunction(Fn); + SelectionDAGISel::runOnMachineFunction(MF); return true; } |

