Clear HandleMap and ReplaceMap after instruction selection. Or it may cause
[oota-llvm.git] / lib / Target / PowerPC / PPCISelDAGToDAG.cpp
index c164020ecaab3f3331509cccbd694b2580233ec1..9e22f1145b70369c570e7081bcd970e6c60f9ef0 100644 (file)
@@ -206,6 +206,8 @@ void PPCDAGToDAGISel::InstructionSelectBasicBlock(SelectionDAG &DAG) {
   // Select target instructions for the DAG.
   DAG.setRoot(SelectRoot(DAG.getRoot()));
   CodeGenMap.clear();
+  HandleMap.clear();
+  ReplaceMap.clear();
   DAG.RemoveDeadNodes();
   
   // Emit machine code to BB.