private function tryRemoveTrivialPhi(Op\Phi $phi, Block $block)
{
if (count($phi->vars) > 1) {
return false;
}
if (count($phi->vars) === 0) {
// shouldn't happen except in unused variables
$var = new Operand\Temporary($phi->result->original);
} else {
$var = $phi->vars[0];
}
// Remove Phi!
$this->replaceVariables($phi->result, $var, $block);
return true;
}