diff options
author | Evan Cheng <evan.cheng@apple.com> | 2005-12-19 22:36:02 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2005-12-19 22:36:02 +0000 |
commit | fcaa9957c9181e1de8c82f2cd808e3c457acc7ba (patch) | |
tree | 046110b363caaf4b168c5478b1f89a287e857acf /lib | |
parent | 9f8cc69009468a5096e32e897060ee0b5b9dddd8 (diff) | |
download | external_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.cpp | 1 |
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. |