<div dir="ltr"><div>Without seeing some sort of code (showing the changed IR or the code that make the changes the IR, for example), it's really hard to "remote debug". And this sort of thing sounds more like stepping through the generated machine-code to understand what goes on, than any other form of debugging.<br><br></div><div>My WAG would be that you are either inserting code in front of the first alloca that causes dynamic alloca's, or something is getting overwritten that you didn't intend/expect to overwrite.<br></div><div><br>--<br></div>Mats<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 9 May 2017 at 14:58, Marcelo Novaes via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">







<p class="m_8242163583923411906gmail-p1"><span class="m_8242163583923411906gmail-s1">Hi all, </span></p>
<p class="m_8242163583923411906gmail-p1"><span class="m_8242163583923411906gmail-s1">After doing a simple LLVM pass which instruments the beginning of some functions of one application of PARSEC (streamcluster kernel), the threads do not leave the pthread join command anymore.  The LLVM IR seems fine (no major changes, just a simple instrumentation on the beginning of the functions as required). Without the simple optimization pass, everything works fine. I know it is a very unclear specification, but someone has any guesses about what can be happening or tips on debugging it? </span></p><p class="m_8242163583923411906gmail-p1">Please, let me know if this list is not the appropriate place to this type of question. </p><p class="m_8242163583923411906gmail-p1">Thank you in advance for the patience, </p><p class="m_8242163583923411906gmail-p1">b<span class="m_8242163583923411906gmail-s1">est, </span>Marcelo.</p>
</div>
<br>______________________________<wbr>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br>
<br></blockquote></div><br></div>