Add a pass to remove unneeded phi nodes as done in other drivers.
This should unblock !332.
/cc @krh @alyssa @tomeu