<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Jul 26, 2010, at 11:11 AM, Dan Gohman wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Verdana; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">Author: djg<br>Date: Mon Jul 26 13:11:16 2010<br>New Revision: 109413<br><br>URL:<span class="Apple-converted-space"> </span><a href="http://llvm.org/viewvc/llvm-project?rev=109413&view=rev">http://llvm.org/viewvc/llvm-project?rev=109413&view=rev</a><br>Log:<br>Remove LCSSA's bogus dependence on LoopSimplify and LoopSimplify's bogus<br>dependence on DominanceFrontier. Instead, add an explicit DominanceFrontier<br>pass in StandardPasses.h to ensure that it gets scheduled at the right<br>time.<br></span></blockquote><br></div><div>If a Pass breaks because DominanceFrontier was not explicitly added in pass manager queue then the pass is broken. A pass is supposed to request all the required analysis itself.</div><div><br></div><div>$ opt -mypass </div><div><br></div><div>should just work even if mypass needs DominanceFrontier. It is mypass's responsibility to request dominance frontier.</div><div><br></div><div>Enforcing `$ opt -domfrontier -mypass` requirement completely goes against getAnalysisUsage() mechanism.</div><div>-</div><div>Devang</div><br></body></html>