forked from OSchip/llvm-project
Make sure to clear the CodeGenMap after each basic block is selected to avoid
cross MBB pollution. llvm-svn: 23470
This commit is contained in:
parent
63523f98d5
commit
c628f00845
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue