[llvm-commits] [llvm] r107797 - /llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
Dan Gohman
gohman at apple.com
Wed Jul 7 11:22:13 PDT 2010
Author: djg
Date: Wed Jul 7 13:22:13 2010
New Revision: 107797
URL: http://llvm.org/viewvc/llvm-project?rev=107797&view=rev
Log:
Update the insert position after scheduling, which may change the
position when emitting multiple blocks when executing a custom
inserter.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp?rev=107797&r1=107796&r2=107797&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp Wed Jul 7 13:22:13 2010
@@ -550,6 +550,7 @@
{
NamedRegionTimer T("Instruction Creation", GroupName, TimePassesIsEnabled);
FuncInfo->MBB = Scheduler->EmitSchedule();
+ FuncInfo->InsertPt = Scheduler->InsertPos;
}
// Free the scheduler state.
More information about the llvm-commits
mailing list