Link basic blocks with phi functions

[#80113672]