aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-04-23 15:29:50 +0000
committerDan Gohman <gohman@apple.com>2010-04-23 15:29:50 +0000
commite8c92dd439581bec7e3516cbdbea74e2e60fe7f0 (patch)
tree01314e686d15d650cd33c1f405dbc0d50a9b57dd /lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
parent27ef9976c2e7a93f0cd088cb098e4860bba29159 (diff)
downloadexternal_llvm-e8c92dd439581bec7e3516cbdbea74e2e60fe7f0.zip
external_llvm-e8c92dd439581bec7e3516cbdbea74e2e60fe7f0.tar.gz
external_llvm-e8c92dd439581bec7e3516cbdbea74e2e60fe7f0.tar.bz2
Move FastISel's HandlePHINodesInSuccessorBlocks call down into FastISel
itself too. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102176 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 875672e..2cdd1cc 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -751,20 +751,6 @@ void SelectionDAGISel::SelectAllBasicBlocks(const Function &Fn) {
FastIS->startNewBlock(BB);
// Do FastISel on as many instructions as possible.
for (; BI != End; ++BI) {
- // Just before the terminator instruction, insert instructions to
- // feed PHI nodes in successor blocks.
- if (isa<TerminatorInst>(BI))
- if (!FastIS->HandlePHINodesInSuccessorBlocks(LLVMBB)) {
- ++NumFastIselFailures;
- if (EnableFastISelVerbose || EnableFastISelAbort) {
- dbgs() << "FastISel miss: ";
- BI->dump();
- }
- assert(!EnableFastISelAbort &&
- "FastISel didn't handle a PHI in a successor");
- break;
- }
-
// Try to select the instruction with FastISel.
if (FastIS->SelectInstruction(BI))
continue;