From 333bd835bd0d01f0e49b2f3d590be685a4959e16 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23470 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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.