mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
Machine CSE was forgetting to clear some data structures.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114222 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9ce75625eb
commit
c2b768f09e
@ -54,6 +54,11 @@ namespace {
|
||||
AU.addPreserved<MachineDominatorTree>();
|
||||
}
|
||||
|
||||
virtual void releaseMemory() {
|
||||
ScopeMap.clear();
|
||||
Exps.clear();
|
||||
}
|
||||
|
||||
private:
|
||||
const unsigned LookAheadLimit;
|
||||
typedef ScopedHashTableScope<MachineInstr*, unsigned,
|
||||
@ -469,6 +474,8 @@ bool MachineCSE::PerformCSE(MachineDomTreeNode *Node) {
|
||||
DenseMap<MachineDomTreeNode*, MachineDomTreeNode*> ParentMap;
|
||||
DenseMap<MachineDomTreeNode*, unsigned> OpenChildren;
|
||||
|
||||
CurrVN = 0;
|
||||
|
||||
// Perform a DFS walk to determine the order of visit.
|
||||
WorkList.push_back(Node);
|
||||
do {
|
||||
|
Loading…
Reference in New Issue
Block a user