MCPcopy Create free account
hub / github.com/AliveToolkit/alive2 / removeUnusedStuff

Method removeUnusedStuff

ir/function.cpp:423–428  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

421}
422
423bool Function::removeUnusedStuff(const UsersTy &users,
424 const vector<string_view> &src_glbs) {
425 bool changed = removeUnused(aggregates, users, src_glbs);
426 changed |= removeUnused(constants, users, src_glbs);
427 return changed;
428}
429
430static vector<BasicBlock*> top_sort(const vector<BasicBlock*> &bbs) {
431 edgesTy edges(bbs.size());

Callers 1

preprocessMethod · 0.80

Calls 1

removeUnusedFunction · 0.85

Tested by

no test coverage detected