[Soot-list] Any suggestions to find the end of a loop?
Eric Bodden
eric.bodden at mail.mcgill.ca
Mon Jul 27 15:45:32 EDT 2009
Hi Kelvin.
I wound have done it the same way - sounds reasonable to me.
Eric
2009/7/27 Kelvin Tian <kevinn.tian at gmail.com>:
> I need to identify the end of a loop and to print out some profiling info
> after a loop's execution. One way I've got to identify the end of a loop is
> to find the loop head, and iterate through its successors, as the statements
> in loop body can't be the post-dominator of the loop head, so when I meet
> with a statement which is a post dominator of the loop head, then the end
> of a loop is found. Is this way applicable for Soot to implement or are
> there any better suggestions? Thanks for any suggestions!
>
>
> --
> Best regards,
> Kelvin
>
>
> _______________________________________________
> Soot-list mailing list
> Soot-list at sable.mcgill.ca
> http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
>
>
--
Eric Bodden
Software Technology Group
Technical University Darmstadt, Germany
More information about the Soot-list
mailing list