Update the insert position after scheduling, which may change the

position when emitting multiple blocks when executing a custom
inserter.

llvm-svn: 107797
This commit is contained in:
Dan Gohman 2010-07-07 18:22:13 +00:00
parent c5344b8cc5
commit 317e584821

View File

@ -550,6 +550,7 @@ void SelectionDAGISel::CodeGenAndEmitDAG() {
{
NamedRegionTimer T("Instruction Creation", GroupName, TimePassesIsEnabled);
FuncInfo->MBB = Scheduler->EmitSchedule();
FuncInfo->InsertPt = Scheduler->InsertPos;
}
// Free the scheduler state.