Yes. Intially the pass was crashing when the module when the module verifier was running. I was able to solve that and now it is crashing when the bit writer pass is running.<br><br><div class="gmail_quote">On Wed, May 5, 2010 at 8:39 PM, Nick Lewycky <span dir="ltr"><<a href="mailto:nlewycky@google.com">nlewycky@google.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div class="gmail_quote"><div class="im">On 5 May 2010 17:12, Adarsh Yoga <span dir="ltr"><<a href="mailto:ayoga@umail.iu.edu" target="_blank">ayoga@umail.iu.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Hi,<br><br>  I've written a pass that basically does some code
transformations to enable parallel execution of loops. After the transformation
llvm runs BitCode Writer pass , which is aborting with Unreachable
Executed error. <br>I have attached the input llvm code and the output llvm code for reference. I am stuck at this problem for a few days now. Please let me know if you are able to find anything unusual.<br></blockquote>


<div><br></div></div>Have you tried running the module verifier after your transform, before writing out to bitcode?<div><br></div><div>Nick</div><div> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">

Regards,<br>

Adarsh<br clear="all"><font color="#888888"><br>-- <br>Adarsh Yoga<br>Graduate Student, Computer Science<br>Indiana University, Bloomington<br>
</font><br></div>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br><br clear="all"><br>-- <br>Adarsh Yoga<br>Graduate Student, Computer Science<br>Indiana University, Bloomington<br>