Add FastISel support for PHINodes. Machine PHI nodes
authorDan Gohman <gohman@apple.com>
Fri, 22 Aug 2008 17:37:48 +0000 (17:37 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 22 Aug 2008 17:37:48 +0000 (17:37 +0000)
are not yet updated properly, but that's a separate
task.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55187 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/FastISel.cpp

index 388028334d579eace822f808e7b5ce9fb7e31572..1462472ea4aa49b7088568b254a58eca7ab82cfe 100644 (file)
@@ -210,6 +210,11 @@ FastISel::SelectInstructions(BasicBlock::iterator Begin,
       // Something more complicated. Halt "fast" selection and bail.
       return I;
     }
+
+    case Instruction::PHI:
+      // PHI nodes are already emitted.
+      break;
+
     default:
       // Unhandled instruction. Halt "fast" selection and bail.
       return I;