<div dir="ltr">Sergei, Thank you for your attention.<div><br></div><div>My target is a custom VLIW DSP. I am not sure dependency dag is correct when it gets scheduled and packetized. Months ago, I submitted a bug at <a href="http://llvm.org/bugs/show_bug.cgi?id=17894">http://llvm.org/bugs/show_bug.cgi?id=17894</a> which explained more details.</div>
<div><br></div><div>I am not sure my understanding of this bug is proper, but modified my local codes this way and it works for my target when scheduling and packetizing.</div><div><br></div><div>Well why this problem does not occur for Hexagon target?</div>
<div><br></div><div>Regards.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014/1/9 Sergei Larin <span dir="ltr"><<a href="mailto:slarin@codeaurora.org" target="_blank">slarin@codeaurora.org</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Yang,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> There is not enough info here to understand what is going wrong – what is your target? Is dependency dag correct going into scheduling and packetization?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Sergei <u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:10.5pt;font-family:Consolas;color:#1f497d">---<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d">Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation</span><span style="font-size:10.5pt;font-family:Consolas;color:#1f497d"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:llvmdev-bounces@cs.uiuc.edu" target="_blank">llvmdev-bounces@cs.uiuc.edu</a> [mailto:<a href="mailto:llvmdev-bounces@cs.uiuc.edu" target="_blank">llvmdev-bounces@cs.uiuc.edu</a>] <b>On Behalf Of </b>???<br>
<b>Sent:</b> Sunday, November 10, 2013 8:31 PM<br><b>To:</b> LLVM-Dev [<a href="mailto:llvmdev@cs.uiuc.edu" target="_blank">llvmdev@cs.uiuc.edu</a>]<br><b>Subject:</b> [LLVMdev] basic block missing after MachineInstr packetizing<u></u><u></u></span></p>
</div></div><div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">Hi, all,<u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">When I schedule machine instructions in a VLIW way and packetize them, a problem is encountered, and I will show it use a simplified case as follows.<u></u><u></u></p>
</div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">############ original instruction sequence<u></u><u></u></p></div><div><p class="MsoNormal">...<u></u><u></u></p></div><div><p class="MsoNormal">
insn1<u></u><u></u></p></div><div><p class="MsoNormal">...<u></u><u></u></p></div><div><p class="MsoNormal">jump LBB0_xx<u></u><u></u></p></div><div><p class="MsoNormal">...<u></u><u></u></p></div><div><p class="MsoNormal">
LBB0_xx:<u></u><u></u></p></div><div><p class="MsoNormal">...<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">############ expected instruction sequence after scheduling and packetizing<u></u><u></u></p>
</div><div><p class="MsoNormal">insn1; jump LBB0_xx<br clear="all"><u></u><u></u></p><div><p class="MsoNormal">...<u></u><u></u></p></div><div><p class="MsoNormal">LBB0_xx:<u></u><u></u></p></div><div><p class="MsoNormal">
...<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">############ generated instruction sequence<u></u><u></u></p></div><div><p class="MsoNormal">insn1; jump LBB0_xx<br clear="all">
<u></u><u></u></p><div><p class="MsoNormal">...<u></u><u></u></p></div><div><p class="MsoNormal">#BB#xx:<u></u><u></u></p></div><div><p class="MsoNormal">...<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p>
</div><div><p class="MsoNormal">BasicBlock BB#xx is commented out when insn1 and "jump LBB0_xx" is bundled.<u></u><u></u></p></div><div><p class="MsoNormal">I guess the reference to LBB0_xx is deconstructed when insn1 and LBB0_xx are packetized together thus BB#xx is commented out.<u></u><u></u></p>
</div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">What should we do if the reference to LBB0_xx has to be maintained?<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div>
<div><p class="MsoNormal">Thanks ahead!<u></u><u></u></p></div><div><p class="MsoNormal"><br>--<u></u><u></u></p></div></div><p class="MsoNormal"><span style="font-family:MingLiU">杨勇勇</span> (Yang Yong-Yong) <u></u><u></u></p>
</div></div></div></div></div></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>杨勇勇 (Yang Yong-Yong)
</div>