How to change default AA with opt? (Change default impl for an analysis group with opt?)

Hi all,

I'm working on an AliasAnalysis pass that is loaded as a module.

What I'd like to do is something like:

opt -my-aa -O3

Where -O3 is whatever set of optimizations I'm using, but they all
should use 'my-aa' for their results.

However, what appears to happen is it uses my-aa until something
invalidates those results and then goes back to basic-aa when
something needs AA results again.

Short of running -my-aa -gvn -my-aa -dse -my-aa -licm... etc, is there
a good way to do this?

Having thought about it, it seems less surprising than it did
originally, but perhaps this should be mentioned somewhere?

Thanks for your time,

~Will

Short of running -my-aa -gvn -my-aa -dse -my-aa -licm... etc, is there
a good way to do this?

No.

Having thought about it, it seems less surprising than it did
originally, but perhaps this should be mentioned somewhere?

Probably. I added some text to docs/AliasAnalysis.html in r106776
for the issues that I ran into when developing a new AA implementation.

Dan

is there

a good way to do this?

No.

Okay, noted.

I added some text to docs/AliasAnalysis.html in r106776
for the issues that I ran into when developing a new AA implementation.

So you did. This explains my issue exactly (and more).

Thanks!

~Will