diff options
author | Dan Gohman <gohman@apple.com> | 2010-04-23 15:29:50 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-04-23 15:29:50 +0000 |
commit | 6e9a8fcc283c6f37b8c316704510273c3f02e6c9 (patch) | |
tree | 833d67a257dad5ba67b2f3c0be408f45703d09f1 /llvm/lib/CodeGen/SelectionDAG/FastISel.cpp | |
parent | 5725580bb62c8293751ff81f9878aa752cb8a288 (diff) | |
download | bcm5719-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.cpp | 6 |
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. |