[LLVMdev] how to detect if block N is reachable from block M ?

Eli Friedman eli.friedman at gmail.com
Wed Mar 30 21:35:04 PDT 2011


On Wed, Mar 30, 2011 at 10:14 AM, Jimborean Alexandra
<xinfinity_a at yahoo.com> wrote:
> Hi,
>
> Is there any method to check if there is a path in the CFG from block M to
> block N, but M does not necessarily dominate block N?
> In other words, if N is reachable from M.

I don't think there's any method built in to LLVM.  It's pretty easy
to write, though.

-Eli



More information about the llvm-dev mailing list