summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/FastISel.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
commit6e9a8fcc283c6f37b8c316704510273c3f02e6c9 (patch)
tree833d67a257dad5ba67b2f3c0be408f45703d09f1 /llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
parent5725580bb62c8293751ff81f9878aa752cb8a288 (diff)
downloadbcm5719-llvm-6e9a8fcc283c6f37b8c316704510273c3f02e6c9.tar.gz
bcm5719-llvm-6e9a8fcc283c6f37b8c316704510273c3f02e6c9.zip
Move FastISel's HandlePHINodesInSuccessorBlocks call down into FastISel
itself too. llvm-svn: 102176
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/FastISel.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/FastISel.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
index 132c42ef0d7..c40eaf62928 100644
--- a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
@@ -553,6 +553,12 @@ bool FastISel::SelectBitCast(const User *I) {
bool
FastISel::SelectInstruction(const Instruction *I) {
+ // Just before the terminator instruction, insert instructions to
+ // feed PHI nodes in successor blocks.
+ if (isa<TerminatorInst>(I))
+ if (!HandlePHINodesInSuccessorBlocks(I->getParent()))
+ return false;
+
DL = I->getDebugLoc();
// First, try doing target-independent selection.
OpenPOWER on IntegriCloud