Improve LSR's dead-phi detection to handle use-def cycles