Critics say the shrine glorifies Japan 's wartime past , but Mr. Koizumi says he visits the shrine to pray for peace .