<div dir="ltr">Hi, <div><br></div><div>I am new to llvm, and recently am playing with opt. I want to use opt to apply one optimization pass to a .bc file. However, I encounter some problems which I failed to find the answers on the internet. Any suggestions are highly appreciated. </div><div><br></div><div>Question 1:</div><div> </div><div>For example, I issued the following command</div><div><br></div><div>    $: opt-trunk -si-lower-control-flow t.c_00.bc -o t.c_01.bc</div><div><br></div><div>Then I got the following error,</div><div><br></div><div>-------------------------------------------------------------- Error Start -------------------------------------------------------------- </div><div>







<p class=""><span class="">Pass 'SI Lower control flow pseudo instructions' is not initialized.</span></p>
<p class=""><span class="">Verify if there is a pass dependency cycle.</span></p>
<p class=""><span class="">Required Passes:</span></p>
<p class=""><span class="">opt-trunk: /tmp/llvm-builder/llvm-source-trunk/lib/IR/LegacyPassManager.cpp:668: void llvm::PMTopLevelManager::schedulePass(llvm::Pass*): Assertion `PI && "Expected required passes to be initialized"' failed.</span></p><p class=""><span class=""></span></p><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"></div><p></p><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">-------------------------------------------------------------- Error End -------------------------------------------------------------- </div><p class="">Question 2:</p><p class="">Some passes depend on other dependencies. Is there any convenient way to get the dependency for a specific pass? </p><p class=""><span class="">Thank you and best regards,</span></p><p class=""><span class="">Chengnian.<br></span></p></div><div>
</div></div>