<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi,</div><div><br></div><div>I am trying to chain two transform passes.</div><div><br></div><div>** The first pass is a function pass which requires the 'memory dependence pass' .</div><div><br></div><div><br></div><div>** The second pass is a function pass which requires the first pass above.</div><div><br></div><div><div>The passes run fine when executed alone.</div></div><div><br></div><div><br></div><div>I get the following error when I try to run my second pass with the following code added</div><div><br></div><div><div><p style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px; ">   <br class="webkit-block-placeholder"></p><div style="margin: 0px; font-size: 11px; font-family: Menlo; ">      </div><blockquote type="cite"><p style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px; ">   <br class="webkit-block-placeholder"></p><div style="margin: 0px; font-size: 11px; font-family: Menlo; ">      <span style="color: #bb2ca2">void</span> getAnalysisUsage(AnalysisUsage &AU)<span style="color: #bb2ca2">const</span>{</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; ">          AU.setPreservesCFG();</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; ">          AU.addRequired<First_Pass>();</div><p style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px; ">          <br class="webkit-block-placeholder"></p><div style="margin: 0px; font-size: 11px; font-family: Menlo; ">      }</div></blockquote><br></div></div><div><br></div><div>Assertion failed: (PI && "Expected required passes to be initialized"), function schedulePass, file PassManager.cpp, line 597.</div><div><br></div><div><br></div><div>I register the passes using RegisterPass function call. What else should I be doing?</div><div><br></div><div><br></div><div>I appreciate your help!!</div><div><br></div><br><div>
regards,<br>Ashwin

</div>
<br></body></html>