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

Method removeBB

ir/function.cpp:234–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232}
233
234void Function::removeBB(BasicBlock &BB) {
235 assert(BB.getName() != "#sink");
236 BBs.erase(BB.getName());
237
238 for (auto I = BB_order.begin(), E = BB_order.end(); I != E; ++I) {
239 if (*I == &BB) {
240 BB_order.erase(I);
241 break;
242 }
243 }
244}
245
246void Function::addConstant(unique_ptr<Value> &&c) {
247 constants.emplace_back(std::move(c));

Callers 2

remove_unreachable_bbsFunction · 0.80
runMethod · 0.80

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected