search for: deadglobalvars

Displaying 3 results from an estimated 3 matches for "deadglobalvars".

2015 May 19
2
[LLVMdev] Removing AvailableExternal values in GlobalDCE (was Re: RFC: ThinLTO Impementation Plan)
...t + // is still referenced. Leave the declaration. + if (DeadFunctions[i]->use_empty()) + M.getFunctionList().erase(DeadFunctions[i]); } NumFunctions += DeadFunctions.size(); Changed = true; @@ -171,7 +174,10 @@ bool GlobalDCE::runOnModule(Module &M) { if (!DeadGlobalVars.empty()) { for (unsigned i = 0, e = DeadGlobalVars.size(); i != e; ++i) { RemoveUnusedGlobalValue(*DeadGlobalVars[i]); - M.getGlobalList().erase(DeadGlobalVars[i]); + // Might have deleted the definition of an available externally function + // that is still referenced. L...
2015 May 19
2
[LLVMdev] Removing AvailableExternal values in GlobalDCE (was Re: RFC: ThinLTO Impementation Plan)
...; + if (DeadFunctions[i]->use_empty()) >> + M.getFunctionList().erase(DeadFunctions[i]); >> } >> NumFunctions += DeadFunctions.size(); >> Changed = true; >> @@ -171,7 +174,10 @@ bool GlobalDCE::runOnModule(Module &M) { >> if (!DeadGlobalVars.empty()) { >> for (unsigned i = 0, e = DeadGlobalVars.size(); i != e; ++i) { >> RemoveUnusedGlobalValue(*DeadGlobalVars[i]); >> - M.getGlobalList().erase(DeadGlobalVars[i]); >> + // Might have deleted the definition of an available externally >> f...
2015 Jun 03
2
[LLVMdev] Removing AvailableExternal values in GlobalDCE (was Re: RFC: ThinLTO Impementation Plan)
...; >> + M.getFunctionList().erase(DeadFunctions[i]); >> >> } >> >> NumFunctions += DeadFunctions.size(); >> >> Changed = true; >> >> @@ -171,7 +174,10 @@ bool GlobalDCE::runOnModule(Module &M) { >> >> if (!DeadGlobalVars.empty()) { >> >> for (unsigned i = 0, e = DeadGlobalVars.size(); i != e; ++i) { >> >> RemoveUnusedGlobalValue(*DeadGlobalVars[i]); >> >> - M.getGlobalList().erase(DeadGlobalVars[i]); >> >> + // Might have deleted the definition o...