mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-01 00:25:01 +00:00
Fix a bug where we would delete neccesary calls in bu pass
llvm-svn: 5465
This commit is contained in:
parent
d946a6a307
commit
acc67b5d1d
@ -1058,7 +1058,8 @@ void DSGraph::removeDeadNodes(unsigned Flags) {
|
|||||||
|
|
||||||
std::vector<bool> AuxFCallsAlive(AuxFunctionCalls.size());
|
std::vector<bool> AuxFCallsAlive(AuxFunctionCalls.size());
|
||||||
for (unsigned i = 0, e = AuxFunctionCalls.size(); i != e; ++i)
|
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);
|
AuxFunctionCalls[i].markReachableNodes(Alive);
|
||||||
AuxFCallsAlive[i] = true;
|
AuxFCallsAlive[i] = true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user