diff options
author | Dan Gohman <gohman@apple.com> | 2010-07-07 18:22:13 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-07-07 18:22:13 +0000 |
commit | b792f844ad1405c1738eacbf5f398e0d6ea1f219 (patch) | |
tree | d7e2bf6cb28e682a20829ccb0c917cd997ac37a1 /llvm/lib/CodeGen | |
parent | 637ee5f1494f36ed58b8eb70219f1c9aeec746fa (diff) | |
download | bcm5719-llvm-b792f844ad1405c1738eacbf5f398e0d6ea1f219.tar.gz bcm5719-llvm-b792f844ad1405c1738eacbf5f398e0d6ea1f219.zip |
Update the insert position after scheduling, which may change the
position when emitting multiple blocks when executing a custom
inserter.
llvm-svn: 107797
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index c81437965af..bea65b2d20e 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -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. |