Make sure to clear the CodeGenMap after each basic block is selected to avoid
cross MBB pollution.

llvm-svn: 23470
diff --git a/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp b/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
index 5019a84..d933547 100644
--- a/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
+++ b/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
@@ -87,6 +87,7 @@
       DEBUG(BB->dump());
       // Select target instructions for the DAG.
       DAG.setRoot(Select(DAG.getRoot()));
+      CodeGenMap.clear();
       DAG.RemoveDeadNodes();
       
       // Emit machine code to BB.