[LLVMdev] Modularizing LICM
listmail at philipreames.com
Fri Dec 19 16:58:56 PST 2014
I've come across similar use cases recently. In particular, there are
some cases where I'd like run HoistRegion on a particular basic block
after loop unswitching.
I would be open to reviewing patches if you wanted to send them. I may
get around to doing so myself eventually, but it's fairly low on my
On 12/15/2014 04:16 AM, Nema, Ashutosh wrote:
> I’m writing a new loop pass, and has a need to call LICM(Loop
> Invariant Code Motion) ‘PromoteAliasSet’ on modified loop.
> For now I didn’t found any why to call ‘PromoteAliasSet’ from my pass
> The only way is to schedule LICM pass after my pass.
> For some reason my pass need more control and preferring to call LICM
> ‘PromoteAliasSet’ instead running full LICM as next pass.
> Can LICM be more modular by exposing wrapper functions for its core
> functionalities (i.e. SinkRegion, HoistRegion, PromoteAliasSet) ?
> These wrappers will check pre-requisite(i.e. AliasAnalysis, LoopInfo
> availability ) and call appropriate functions.
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev