insertPhiNodes method
void
insertPhiNodes()
Insert Phi nodes into the control flow graph. This is necessary before converting the control flow graph to SSA form.
Implementation
void insertPhiNodes() {
if (hasPhiNodes) {
throw StateError('Already inserted phi nodes');
}
if (inSSAForm) {
throw StateError('Cannot insert phi nodes into SSA form');
}
insertPhiNodesInto(_ids, globals, mergeSets);
_hasPhiNodes = true;
}