A preconditioner for the Helmholtz equation with perfectly matched layer