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/SelectionDAGBuilder.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/SelectionDAGBuilder.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index 470689bd06..054174f037 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp @@ -621,6 +621,10 @@ void SelectionDAGBuilder::visit(const Instruction &I) { CurDebugLoc = DebugLoc(); } +void SelectionDAGBuilder::visitPHI(const PHINode &) { + llvm_unreachable("SelectionDAGBuilder shouldn't visit PHI nodes!"); +} + void SelectionDAGBuilder::visit(unsigned Opcode, const User &I) { // Note: this doesn't use InstVisitor, because it has to work with // ConstantExpr's in addition to instructions. |