Use DominatorTree from CallGraphSCCPass


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?