[poolalloc] r238379 - BU: Fix datastructure bug when copying into AFC from temporary list.
Will Dietz
wdietz2 at illinois.edu
Wed May 27 16:32:25 PDT 2015
Author: wdietz2
Date: Wed May 27 18:32:25 2015
New Revision: 238379
URL: http://llvm.org/viewvc/llvm-project?rev=238379&view=rev
Log:
BU: Fix datastructure bug when copying into AFC from temporary list.
splice() may still be usable and perhaps faster,
but this is clear and certainly works.
Modified:
poolalloc/trunk/lib/DSA/BottomUpClosure.cpp
Modified: poolalloc/trunk/lib/DSA/BottomUpClosure.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/DSA/BottomUpClosure.cpp?rev=238379&r1=238378&r2=238379&view=diff
==============================================================================
--- poolalloc/trunk/lib/DSA/BottomUpClosure.cpp (original)
+++ poolalloc/trunk/lib/DSA/BottomUpClosure.cpp Wed May 27 18:32:25 2015
@@ -660,8 +660,7 @@ void BUDataStructures::calculateGraph(DS
if (CS.isIndirectCall())
++NumIndUnresolved;
// Remember that we could not resolve this yet!
- DSGraph::FunctionListTy::iterator S = I++;
- AuxCallsList.splice(AuxCallsList.end(), TempFCs, S);
+ AuxCallsList.push_back(CS);
continue;
}
// If we get to this point, we know the callees, and can inline.
More information about the llvm-commits
mailing list