From 6d1a2716a43237ab3e8d246030d6020451d0ced7 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 27 Sep 2005 17:45:33 +0000 Subject: [PATCH] Make sure to clear the CodeGenMap after each basic block is selected to avoid cross MBB pollution. llvm-svn: 23470 --- lib/Target/PowerPC/PPCISelDAGToDAG.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Target/PowerPC/PPCISelDAGToDAG.cpp b/lib/Target/PowerPC/PPCISelDAGToDAG.cpp index 5019a848a44..d9335477400 100644 --- a/lib/Target/PowerPC/PPCISelDAGToDAG.cpp +++ b/lib/Target/PowerPC/PPCISelDAGToDAG.cpp @@ -87,6 +87,7 @@ namespace { DEBUG(BB->dump()); // Select target instructions for the DAG. DAG.setRoot(Select(DAG.getRoot())); + CodeGenMap.clear(); DAG.RemoveDeadNodes(); // Emit machine code to BB.