aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2005-12-19 22:36:02 +0000
committerEvan Cheng <evan.cheng@apple.com>2005-12-19 22:36:02 +0000
commitfcaa9957c9181e1de8c82f2cd808e3c457acc7ba (patch)
tree046110b363caaf4b168c5478b1f89a287e857acf /lib
parent9f8cc69009468a5096e32e897060ee0b5b9dddd8 (diff)
downloadexternal_llvm-fcaa9957c9181e1de8c82f2cd808e3c457acc7ba.zip
external_llvm-fcaa9957c9181e1de8c82f2cd808e3c457acc7ba.tar.gz
external_llvm-fcaa9957c9181e1de8c82f2cd808e3c457acc7ba.tar.bz2
It's essential we clear CodeGenMap after isel every basic block!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24867 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/X86/X86ISelDAGToDAG.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/X86/X86ISelDAGToDAG.cpp b/lib/Target/X86/X86ISelDAGToDAG.cpp
index 4fad8df..4484ae5 100644
--- a/lib/Target/X86/X86ISelDAGToDAG.cpp
+++ b/lib/Target/X86/X86ISelDAGToDAG.cpp
@@ -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.