[llvm-dev] Use DominatorTree from CallGraphSCCPass

Taewook Oh via llvm-dev llvm-dev at lists.llvm.org
Thu Feb 25 14:32:25 PST 2016


Hello,

I'm trying to improve SimpleInliner to use information given by __builtin_expect instruction (It would be better to not to inline if a call instruction is unlikely to be executed). The problem here is that it is not possible to compute control dependency relationship between the annotated branch instruction and callsites using PostDominatorTree, because PostDominatorTree is a function pass and SimpleInliner is a CallGraphSCCPass. Is there any walk around for this issue?

Thanks,
Taewook
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160225/05a96f72/attachment.html>


More information about the llvm-dev mailing list