diff options
author | Chris Lattner <sabre@nondot.org> | 2002-06-25 16:13:24 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-06-25 16:13:24 +0000 |
commit | 7e70829632f82de15db187845666aaca6e04b792 (patch) | |
tree | 48dd2d804e7ebec9a3cbd8bf229cb2a2aa20dce5 /lib/CodeGen/InstrSched | |
parent | 0b12b5f50ec77a8bd01b92d287c52d748619bb4b (diff) |
MEGAPATCH checkin.
For details, See: docs/2002-06-25-MegaPatchInfo.txt
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2779 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/InstrSched')
-rw-r--r-- | lib/CodeGen/InstrSched/InstrScheduling.cpp | 11 | ||||
-rw-r--r-- | lib/CodeGen/InstrSched/SchedGraph.cpp | 2 |
2 files changed, 6 insertions, 7 deletions
diff --git a/lib/CodeGen/InstrSched/InstrScheduling.cpp b/lib/CodeGen/InstrSched/InstrScheduling.cpp index 2d2bc14726..46c1c15998 100644 --- a/lib/CodeGen/InstrSched/InstrScheduling.cpp +++ b/lib/CodeGen/InstrSched/InstrScheduling.cpp @@ -1489,18 +1489,17 @@ namespace { AU.addRequired(FunctionLiveVarInfo::ID); } - bool runOnFunction(Function *F); + bool runOnFunction(Function &F); }; } // end anonymous namespace -bool -InstructionSchedulingWithSSA::runOnFunction(Function *M) +bool InstructionSchedulingWithSSA::runOnFunction(Function &F) { if (SchedDebugLevel == Sched_Disable) return false; - SchedGraphSet graphSet(M, target); + SchedGraphSet graphSet(&F, target); if (SchedDebugLevel >= Sched_PrintSchedGraphs) { @@ -1520,7 +1519,7 @@ InstructionSchedulingWithSSA::runOnFunction(Function *M) cerr << "\n*** TRACE OF INSTRUCTION SCHEDULING OPERATIONS\n\n"; // expensive! - SchedPriorities schedPrio(M, graph,getAnalysis<FunctionLiveVarInfo>()); + SchedPriorities schedPrio(&F, graph,getAnalysis<FunctionLiveVarInfo>()); SchedulingManager S(target, graph, schedPrio); ChooseInstructionsForDelaySlots(S, bb, graph); // modifies graph @@ -1533,7 +1532,7 @@ InstructionSchedulingWithSSA::runOnFunction(Function *M) if (SchedDebugLevel >= Sched_PrintMachineCode) { cerr << "\n*** Machine instructions after INSTRUCTION SCHEDULING\n"; - MachineCodeForMethod::get(M).dump(); + MachineCodeForMethod::get(&F).dump(); } return false; diff --git a/lib/CodeGen/InstrSched/SchedGraph.cpp b/lib/CodeGen/InstrSched/SchedGraph.cpp index 0629f8c75f..3cd6cfafaf 100644 --- a/lib/CodeGen/InstrSched/SchedGraph.cpp +++ b/lib/CodeGen/InstrSched/SchedGraph.cpp @@ -985,7 +985,7 @@ SchedGraphSet::buildGraphsForMethod(const Function *F, const TargetMachine& target) { for (Function::const_iterator BI = F->begin(); BI != F->end(); ++BI) - addGraph(new SchedGraph(*BI, target)); + addGraph(new SchedGraph(BI, target)); } |