<div>Hi,</div><div>The LLVM tools didn't crash, but the inlined code crashed at runtime. I later narrowed down that issue to one function, after I added no inline to that function in my transform pass, everything works normal again. I guess that's a issue with the inliner</div><div><br></div><div>Zhang</div><div><includetail><div> </div><div> </div><div style="font:Verdana normal 14px;color:#000;"><div style="FONT-SIZE: 12px;FONT-FAMILY: Arial Narrow;padding:2px 0 2px 0;">------------------ Original ------------------</div><div style="FONT-SIZE: 12px;background:#efefef;padding:8px;"><div id="menu_sender"><b>From: </b> "Kevin Choi"<code.kchoi@gmail.com>;</div><div><b>Date: </b> Mon, Aug 13, 2018 10:04 AM</div><div><b>To: </b> "Zhang"<admin@mayuyu.io>; <wbr></div><div></div><div><b>Subject: </b> Re: [llvm-dev] LLVM's Inliner broke the code</div></div><div> </div><div style="position:relative;">
Hi,<br>
<br>
you might want to output --verbose to isolate which command has the
crash and then attach debugger like lldb/gdb to the command to debug
it. Sounds like it might be crashing in opt.<br>
ie. gdb -tui --args <command><br>
<br>
Regards,<br>
Kevin<br>
<br>
<div class="moz-cite-prefix">On 7/27/2018 5:18 AM, Zhang via
llvm-dev wrote:<br>
</div>
<blockquote type="cite" cite="mid:tencent_41FC9E9C1BC2373B61ACD5F4@qq.com">
<div>Hi:</div>
<div>I was using various Inliners on a custom built IR Function
however the code simply results in a NULL Pointer Access crash. </div>
<div>How do I debug this issue? The IR code runs perfectly fine
without the Inliner. The Inlined functions contains a lot of
GEP/Load and stores</div>
<div><br>
</div>
<div><br>
</div>
<div>Zhang</div>
<div></div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>
<a class="moz-txt-link-freetext" href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a>
</pre>
</blockquote>
<br>
</div></div><!--<![endif]--></includetail></div>