diff options
author | Dan Gohman <gohman@apple.com> | 2010-04-20 15:00:41 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-04-20 15:00:41 +0000 |
commit | ba5be5c07bb19dcf484e3aa40cd139dd07c10407 (patch) | |
tree | 252b40271c03df5d9f7c87d8be20af9987975cf7 /lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
parent | e08b320f15b95eb3279fddba6ccb615eafbc4225 (diff) |
Don't send PHI nodes down to SelectionDAGBuilder of FastISel, since
they end up doing nothing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101904 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index e21b1c8ca5..2a27d1b59a 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -728,7 +728,7 @@ void SelectionDAGISel::SelectAllBasicBlocks(const Function &Fn) { const BasicBlock *LLVMBB = &*I; MachineBasicBlock *BB = FuncInfo->MBBMap[LLVMBB]; - BasicBlock::const_iterator const Begin = LLVMBB->begin(); + BasicBlock::const_iterator const Begin = LLVMBB->getFirstNonPHI(); BasicBlock::const_iterator const End = LLVMBB->end(); BasicBlock::const_iterator BI = Begin; |