This patch was extracted from the (somewhat too large) D12357 and
rebosed on top of the slightly different design of the new pass manager
AA wiring that I just landed. With this we can start testing the AA in
a thorough way with the new pass manager.
Some minor cleanups to the code in the pass was necessitated here, but
otherwise it is a very minimal change.
Let me know if you want me to just do subsequent changes porting AA-related
things with post-commit review. They're fairly noisy in terms of changed lines,
but are getting highly mechanical and the interesting design decisions are
dwindling rapidly.