enhance deadcode elimination on recursive function call