Will Dietz
2010-Jun-24 16:55 UTC
[LLVMdev] 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
Dan Gohman
2010-Jun-24 19:35 UTC
[LLVMdev] How to change default AA with opt? (Change default impl for an analysis group with opt?)
On Jun 24, 2010, at 9:55 AM, Will Dietz wrote:> > 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
Will Dietz
2010-Jun-24 23:02 UTC
[LLVMdev] How to change default AA with opt? (Change default impl for an analysis group with opt?)
On Thu, Jun 24, 2010 at 2:35 PM, Dan Gohman <gohman at apple.com> wrote:> 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
Reasonably Related Threads
- [LLVMdev] How to change default AA with opt? (Change default impl for an analysis group with opt?)
- [LLVMdev] Queries of an invalidated AA ModulePass
- [LLVMdev] AliasAnalysis as a Loadable Module, Possible 2.6->2.7 issue
- [LLVMdev] Queries of an invalidated AA ModulePass
- [LLVMdev] Queries of an invalidated AA ModulePass