diff options
author | Dan Gohman <gohman@apple.com> | 2010-04-20 15:03:56 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-04-20 15:03:56 +0000 |
commit | 92884f7ee54186b136a1ade7fa0194097f225c81 (patch) | |
tree | 546127b7ea33c4777be10893cd74871910649a6c /lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
parent | ba5be5c07bb19dcf484e3aa40cd139dd07c10407 (diff) | |
download | external_llvm-92884f7ee54186b136a1ade7fa0194097f225c81.zip external_llvm-92884f7ee54186b136a1ade7fa0194097f225c81.tar.gz external_llvm-92884f7ee54186b136a1ade7fa0194097f225c81.tar.bz2 |
Sink the CopyToExportRegsIfNeeded calls out of SelectionDAGISel
into SelectionDAGBuilder. This avoids a separate pass over the
instructions, and has the side effect of providing debug location
information to the copy.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101906 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 2a27d1b..7c2c528 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -239,12 +239,6 @@ SelectionDAGISel::SelectBasicBlock(MachineBasicBlock *BB, SDB->visit(*I); if (!SDB->HasTailCall) { - // Ensure that all instructions which are used outside of their defining - // blocks are available as virtual registers. Invoke is handled elsewhere. - for (BasicBlock::const_iterator I = Begin; I != End; ++I) - if (!isa<PHINode>(I) && !isa<InvokeInst>(I)) - SDB->CopyToExportRegsIfNeeded(I); - // Handle PHI nodes in successor blocks. if (End == LLVMBB->end()) { HandlePHINodesInSuccessorBlocks(LLVMBB); |