aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-09-27 17:45:33 +0000
committerChris Lattner <sabre@nondot.org>2005-09-27 17:45:33 +0000
commit333bd835bd0d01f0e49b2f3d590be685a4959e16 (patch)
tree631368e25d4e3c6b75fdc6dfb8511d8b5314312a /lib
parent5324fec6449555a76fa622a1a90760d42c50bd6b (diff)
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
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/PowerPC/PPCISelDAGToDAG.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCISelDAGToDAG.cpp b/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
index 5019a848a4..d933547740 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.