My agent told me I'd have revisions to make once I signed on, but she didn't make me do them before she represented me. Most of the revisions were minor. It wasn't a big overhaul or anything.
My suggestion, though, would be to get your manuscript to the best place as possible, and even then, an interested agent will probably see things that you didn't see and have ideas for fixing things that you don't know how to fix.
Then again, I have a friend whose agent sent her manuscript out to publishers exactly as is. Experiences vary, but for mostly every agent and every manuscript, if too much work is needed, the agent may just flat-out reject it. They also may give you suggestions and then look at it again when the changes are made, but that's not an offer of representation.