[llvm-dev] Let CallGraphSCCPass Use Function-Level Analysis

Doerfert, Johannes via llvm-dev llvm-dev at lists.llvm.org
Thu Jan 9 08:25:48 PST 2020


On 01/09, Mikhail Gudim wrote:
> Thanks Brian and Johannes for your replies.
> 
>     " As Brian noted, stuff like this works better in the new pass manager."
> 
> Yes, but I need it to work for the old pass manager.
>
> 	" Did you initialize the pass, via
>      `INITIALIZE_PASS_DEPENDENCY(PostDominatorTreeWrapperPass)`?
>      Did you require it, via
>      ` AU.addRequired<PostDominatorTreeWrapperPass>();`"
> 
> Yes, I did.

Worst case, you could build the PostDominatorTree yourself in the pass.


>     " Btw. May I ask what you are planning to do?"
> 
> I would like to iterate through all post-dominators of the entry block (instead of just the entry block) to find more opportunities for argument promotion:
> 
> https://reviews.llvm.org/D72382
> 
> Btw, it would be great if you could review / give some feedback on that patch.

Done.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200109/3a1b871d/attachment.sig>


More information about the llvm-dev mailing list