<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><BR><DIV><DIV>On Aug 8, 2007, at 9:44 AM, Seung Jae Lee wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">Is there any way to figure out very quickly that 'bb6' basic block has no child in CFG without any checking process the last terminating instruction is not 'br'?</FONT></P> </BLOCKQUOTE></DIV><BR><DIV>Check successor iterator.  </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">      </SPAN>if (succ_begin(BB) == succ_end(BB))</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">          </SPAN>BB has no successor in CFG.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>See include/llvm/Support/CFG.h for more info.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>-</DIV><DIV>Devang</DIV></BODY></HTML>