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
This commit is contained in:
Chris Lattner 2005-09-27 17:45:33 +00:00
parent 5324fec644
commit 333bd835bd

View File

@ -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.