Fix non-passing CI test

Remove illegal print.
Only output Phi instruction if result is used.