[LLVMdev] getExitBlocks returns duplicates in result vector
Devang Patel
devang.patel at gmail.com
Fri Nov 20 09:32:33 PST 2009
On Fri, Nov 20, 2009 at 2:11 AM, Harmen van der Spek <hvdspek at liacs.nl> wrote:
> Hi,
>
> LoopBase::getExitBlocks in LoopInfo.h returns all exit basic blocks by
> iterating over all blocks of a loop and storing all branch targets
> that are outside the loop. This method allows for duplicates in the
> result vector,
Yes. Try LoopInfo::getUniqueExitBlocks() if you'd like to avoid duplicates.
-
Devang
More information about the llvm-dev
mailing list