mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-12 07:37:34 +00:00
Fix a bug where we would delete neccesary calls in bu pass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5465 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
706e7ab871
commit
7094b7ae8f
@ -1058,7 +1058,8 @@ void DSGraph::removeDeadNodes(unsigned Flags) {
|
||||
|
||||
std::vector<bool> AuxFCallsAlive(AuxFunctionCalls.size());
|
||||
for (unsigned i = 0, e = AuxFunctionCalls.size(); i != e; ++i)
|
||||
if (CallSiteUsesAliveArgs(AuxFunctionCalls[i], Alive, Visited)) {
|
||||
if (!(Flags & DSGraph::RemoveUnreachableGlobals) ||
|
||||
CallSiteUsesAliveArgs(AuxFunctionCalls[i], Alive, Visited)) {
|
||||
AuxFunctionCalls[i].markReachableNodes(Alive);
|
||||
AuxFCallsAlive[i] = true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user