1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00

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:
Chris Lattner 2005-09-27 17:45:33 +00:00
parent 5a82322c66
commit 6d1a2716a4

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.