<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Apr 19, 2012, at 10:43 PM, xiaoming gu <<a href="mailto:xiaoming.gu@gmail.com">xiaoming.gu@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi, all. I'm using <font class="Apple-style-span" style="font-style:italic">void LoopBase::getExitBlocks (SmallVectorImpl< BlockT * > &ExitBlocks) const </font>to get all <div>exit blocks for a loop. The problem I find with this API is that it returns repetitive basic blocks in certain </div>
<div>situations. Should repetitive basic blocks be removed?</div></blockquote><br></div><div>Users generally expect a unique set of exit blocks, but don't make any strong assumption. The worst that can happen is missed optimization or redundant analysis. In most cases, the loop is in LoopSimplifyForm, so it's probably not a problem in practice.</div><div><br></div><div>-Andy</div><br></body></html>