Skip to content
Snippets Groups Projects
Commit c628f008 authored by Chris Lattner's avatar Chris Lattner
Browse files

Make sure to clear the CodeGenMap after each basic block is selected to avoid

cross MBB pollution.

llvm-svn: 23470
parent 63523f98
No related branches found
No related tags found
No related merge requests found
...@@ -87,6 +87,7 @@ namespace { ...@@ -87,6 +87,7 @@ namespace {
DEBUG(BB->dump()); DEBUG(BB->dump());
// Select target instructions for the DAG. // Select target instructions for the DAG.
DAG.setRoot(Select(DAG.getRoot())); DAG.setRoot(Select(DAG.getRoot()));
CodeGenMap.clear();
DAG.RemoveDeadNodes(); DAG.RemoveDeadNodes();
// Emit machine code to BB. // Emit machine code to BB.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment