It's essential we clear CodeGenMap after isel every basic block!

llvm-svn: 24867
This commit is contained in:
Evan Cheng 2005-12-19 22:36:02 +00:00
parent 50b2d302d5
commit 1d9b671de0
1 changed files with 1 additions and 0 deletions

View File

@ -139,6 +139,7 @@ void X86DAGToDAGISel::InstructionSelectBasicBlock(SelectionDAG &DAG) {
// Codegen the basic block.
DAG.setRoot(Select(DAG.getRoot()));
CodeGenMap.clear();
DAG.RemoveDeadNodes();
// Emit machine code to BB.