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/FastISel.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/FastISel.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/FastISel.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/CodeGen/SelectionDAG/FastISel.cpp b/lib/CodeGen/SelectionDAG/FastISel.cpp index cd72fe7003..8f53c5caae 100644 --- a/lib/CodeGen/SelectionDAG/FastISel.cpp +++ b/lib/CodeGen/SelectionDAG/FastISel.cpp @@ -52,6 +52,7 @@ #include "llvm/Target/TargetInstrInfo.h" #include "llvm/Target/TargetLowering.h" #include "llvm/Target/TargetMachine.h" +#include "llvm/Support/ErrorHandling.h" #include "FunctionLoweringInfo.h" using namespace llvm; @@ -692,10 +693,6 @@ FastISel::SelectOperator(const User *I, unsigned Opcode) { // Nothing to emit. return true; - case Instruction::PHI: - // PHI nodes are already emitted. - return true; - case Instruction::Alloca: // FunctionLowering has the static-sized case covered. if (StaticAllocaMap.count(cast<AllocaInst>(I))) @@ -735,6 +732,9 @@ FastISel::SelectOperator(const User *I, unsigned Opcode) { return true; } + case Instruction::PHI: + llvm_unreachable("FastISel shouldn't visit PHI nodes!"); + default: // Unhandled instruction. Halt "fast" selection and bail. return false; |