<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"> Hello Tobi,<br><br>I am interested in Polly project. Polly seems to be a very promising tool to find out program parallelization based on LLVM infrastructure. However, I find that Polly analysis and optimization can consume significant compiling time, so I propose a GSoC project to reduce Polly compiling time and I hope my work can make the Polly tool more applicable for all LLVM users.<br><br>I have done some preliminary experiments. My experimental environment is built as follows:<br>First, I build the LLVM, Clang and Polly using -O3 option, so all of these tools can be run in best case;<br>Second, I evaluate the compiling time of Polybench using the following options:<br> Clang-O3: clang -O3 (the basic clang without polly)<br> Polly-basic: clang -Xclang -load -Xclang LLVMPolly.so -O3 (!
load polly but no use of polly optimization)<br> Polly-optimize: clang -Xclang -load -Xclang LLVMPolly.so -mllvm -polly -O3 (use polly optimization)<br><br>The preliminary experimental results are as follows: (benchmarks are collected from Po<br>
<meta http-equiv="CONTENT-TYPE" content="text/html; charset=utf-8">
<title></title>
<meta name="GENERATOR" content="OpenOffice.org 3.2 (Linux)">
<style>
<!--
BODY,DIV,TABLE,THEAD,TBODY,TFOOT,TR,TH,TD,P { font-family:"DejaVu Sans"; font-size:x-small }
-->
</style>
<table cols="6" frame="VOID" rules="NONE" border="0" cellspacing="0">
<colgroup><col width="111"><col width="73"><col width="79"><col width="74"><col width="76"><col width="79"></colgroup>
<tbody>
<tr>
<td height="47" width="111" align="RIGHT"><br></td>
<td width="73" align="RIGHT"><font face="DejaVu Serif">Clang <br>(seconds)</font></td>
<td width="79" align="RIGHT"><font face="DejaVu Serif">Polly-basic<br>(seconds)</font></td>
<td width="74" align="RIGHT"><font face="DejaVu Serif">Polly-optimize<br>(seconds)</font></td>
<td width="76" align="RIGHT"><font face="DejaVu Serif">Polly-load overhead</font></td>
<td width="79" align="RIGHT"><font face="DejaVu Serif">Polly-optimize <br>overhead</font></td>
</tr>
<tr>
<td height="17" align="RIGHT"><font face="DejaVu Serif">2mm.c</font></td>
<td sdval="0.786" sdnum="2052;" align="RIGHT"><font face="DejaVu Serif">0.786</font></td>
<td sdval="0.802" sdnum="2052;" align="RIGHT"><font face="DejaVu Serif">0.802</font></td>
<td sdval="1.944" sdnum="2052;" align="RIGHT"><font face="DejaVu Serif">1.944</font></td>
<td sdval="0.0203562340966921" sdnum="2052;0;0.0%" align="RIGHT"><font face="DejaVu Serif">2.0%</font></td>
<td sdval="1.47328244274809" sdnum="2052;0;0.0%" align="RIGHT"><font face="DejaVu Serif">147.3%</font></td>
</tr>
<tr>
<td height="17" align="RIGHT"><font face="DejaVu Serif">correlation.c</font></td>
<td sdval="0.782" sdnum="2052;" align="RIGHT"><font face="DejaVu Serif">0.782</font></td>
<td sdval="0.792" sdnum="2052;" align="RIGHT"><font face="DejaVu Serif">0.792</font></td>
<td sdval="2.005" sdnum="2052;" align="RIGHT"><font face="DejaVu Serif">2.005</font></td>
<td sdval="0.0127877237851663" sdnum="2052;0;0.0%" align="RIGHT"><font face="DejaVu Serif">1.3%</font></td>
<td sdval="1.56393861892583" sdnum="2052;0;0.0%" align="RIGHT"><font face="DejaVu Serif">156.4%</font></td>
</tr>
<tr>
<td height="17" align="RIGHT"><font face="DejaVu Serif">gesummv.c</font></td>
<td sdval="0.583" sdnum="2052;" align="RIGHT"><font face="DejaVu Serif">0.583</font></td>
<td sdval="0.603" sdnum="2052;" align="RIGHT"><font face="DejaVu Serif">0.603</font></td>
<td sdval="1.08" sdnum="2052;" align="RIGHT"><font face="DejaVu Serif">1.08</font></td>
<td sdval="0.0343053173241853" sdnum="2052;0;0.0%" align="RIGHT"><font face="DejaVu Serif">3.4%</font></td>
<td sdval="0.852487135506004" sdnum="2052;0;0.0%" align="RIGHT"><font face="DejaVu Serif">85.2%</font></td>
</tr>
<tr>
<td height="17" align="RIGHT"><font face="DejaVu Serif">ludcmp.c</font></td>
<td sdval="0.787" sdnum="2052;" align="RIGHT"><font face="DejaVu Serif">0.787</font></td>
<td sdval="0.806" sdnum="2052;" align="RIGHT"><font face="DejaVu Serif">0.806</font></td>
<td sdval="2.475" sdnum="2052;" align="RIGHT"><font face="DejaVu Serif">2.475</font></td>
<td sdval="0.0241423125794155" sdnum="2052;0;0.0%" align="RIGHT"><font face="DejaVu Serif">2.4%</font></td>
<td sdval="2.14485387547649" sdnum="2052;0;0.0%" align="RIGHT"><font face="DejaVu Serif">214.5%</font></td>
</tr>
<tr>
<td height="17" align="RIGHT"><font face="DejaVu Serif">3mm.c</font></td>
<td sdval="0.786" sdnum="2052;" align="RIGHT">0.786</td>
<td sdval="0.811" sdnum="2052;" align="RIGHT">0.811</td>
<td sdval="2.617" sdnum="2052;" align="RIGHT"><font face="DejaVu Serif">2.617</font></td>
<td sdval="0.0318066157760814" sdnum="2052;0;0.0%" align="RIGHT"><font face="DejaVu Serif">3.2%</font></td>
<td sdval="2.3295165394402" sdnum="2052;0;0.0%" align="RIGHT"><font face="DejaVu Serif">233.0%</font></td>
</tr>
<tr>
<td height="21" align="RIGHT"><font face="DejaVu Serif">covariance.c</font></td>
<td sdval="0.73" sdnum="2052;" align="RIGHT">0.73</td>
<td sdval="0.74" sdnum="2052;" align="RIGHT">0.74</td>
<td sdval="2.294" sdnum="2052;" align="RIGHT">2.294</td>
<td sdval="0.0136986301369863" sdnum="2052;0;0.0%" align="RIGHT"><font face="DejaVu Serif">1.4%</font></td>
<td sdval="2.14246575342466" sdnum="2052;0;0.0%" align="RIGHT"><font face="DejaVu Serif">214.2%</font></td>
</tr>
<tr>
<td height="20" align="RIGHT"><font face="DejaVu Serif">gramschmidt.c</font></td>
<td sdval="0.63" sdnum="2052;" align="RIGHT">0.63</td>
<td sdval="0.643" sdnum="2052;" align="RIGHT">0.643</td>
<td sdval="1.134" sdnum="2052;" align="RIGHT">1.134</td>
<td sdval="0.0206349206349206" sdnum="2052;0;0.0%" align="RIGHT"><font face="DejaVu Serif">2.1%</font></td>
<td sdval="0.8" sdnum="2052;0;0.0%" align="RIGHT"><font face="DejaVu Serif">80.0%</font></td>
</tr>
<tr>
<td height="17" align="RIGHT"><font face="DejaVu Serif">seidel.c</font></td>
<td sdval="0.632" sdnum="2052;" align="RIGHT">0.632</td>
<td sdval="0.645" sdnum="2052;" align="RIGHT">0.645</td>
<td sdval="2.036" sdnum="2052;" align="RIGHT">2.036</td>
<td sdval="0.0205696202531646" sdnum="2052;0;0.0%" align="RIGHT"><font face="DejaVu Serif">2.1%</font></td>
<td sdval="2.22151898734177" sdnum="2052;0;0.0%" align="RIGHT"><font face="DejaVu Serif">222.2%</font></td>
</tr>
<tr>
<td height="17" align="RIGHT"><font face="DejaVu Serif">adi.c</font></td>
<td sdval="0.8" sdnum="2052;" align="RIGHT">0.8</td>
<td sdval="0.811" sdnum="2052;" align="RIGHT">0.811</td>
<td sdval="3.044" sdnum="2052;" align="RIGHT">3.044</td>
<td sdval="0.01375" sdnum="2052;0;0.0%" align="RIGHT"><font face="DejaVu Serif">1.4%</font></td>
<td sdval="2.805" sdnum="2052;0;0.0%" align="RIGHT"><font face="DejaVu Serif">280.5%</font></td>
</tr>
<tr>
<td height="17" align="RIGHT"><font face="DejaVu Serif">doitgen.c</font></td>
<td sdval="0.742" sdnum="2052;" align="RIGHT">0.742</td>
<td sdval="0.752" sdnum="2052;" align="RIGHT">0.752</td>
<td sdval="2.32" sdnum="2052;" align="RIGHT">2.32</td>
<td sdval="0.0134770889487871" sdnum="2052;0;0.0%" align="RIGHT"><font face="DejaVu Serif">1.3%</font></td>
<td sdval="2.1266846361186" sdnum="2052;0;0.0%" align="RIGHT"><font face="DejaVu Serif">212.7%</font></td>
</tr>
<tr>
<td height="20" align="RIGHT"><font face="DejaVu Serif">instrument.c</font></td>
<td sdval="0.445" sdnum="2052;" align="RIGHT">0.445</td>
<td sdval="0.45" sdnum="2052;" align="RIGHT">0.45</td>
<td sdval="0.495" sdnum="2052;" align="RIGHT">0.495</td>
<td sdval="0.0112359550561798" sdnum="2052;0;0.0%" align="RIGHT"><font face="DejaVu Serif">1.1%</font></td>
<td sdval="0.112359550561798" sdnum="2052;0;0.0%" align="RIGHT"><font face="DejaVu Serif">11.2%</font></td>
</tr>
<tr>
<td height="17" align="RIGHT"><font face="DejaVu Serif">atax.c</font></td>
<td sdval="0.614" sdnum="2052;" align="RIGHT">0.614</td>
<td sdval="0.627" sdnum="2052;" align="RIGHT">0.627</td>
<td sdval="1.007" sdnum="2052;" align="RIGHT">1.007</td>
<td sdval="0.0211726384364821" sdnum="2052;0;0.0%" align="RIGHT"><font face="DejaVu Serif">2.1%</font></td>
<td sdval="0.640065146579804" sdnum="2052;0;0.0%" align="RIGHT"><font face="DejaVu Serif">64.0%</font></td>
</tr>
<tr>
<td height="17" align="RIGHT"><font face="DejaVu Serif">gemm.c</font></td>
<td sdval="0.721" sdnum="2052;" align="RIGHT">0.721</td>
<td sdval="0.74" sdnum="2052;" align="RIGHT">0.74</td>
<td sdval="1.327" sdnum="2052;" align="RIGHT">1.327</td>
<td sdval="0.0263522884882108" sdnum="2052;0;0.0%" align="RIGHT"><font face="DejaVu Serif">2.6%</font></td>
<td sdval="0.840499306518724" sdnum="2052;0;0.0%" align="RIGHT"><font face="DejaVu Serif">84.0%</font></td>
</tr>
<tr>
<td height="17" align="RIGHT"><font face="DejaVu Serif">jacobi-2d-imper.c</font></td>
<td sdval="0.721" sdnum="2052;" align="RIGHT">0.721</td>
<td sdval="0.735" sdnum="2052;" align="RIGHT">0.735</td>
<td sdval="2.211" sdnum="2052;" align="RIGHT">2.211</td>
<td sdval="0.0194174757281554" sdnum="2052;0;0.0%" align="RIGHT"><font face="DejaVu Serif">1.9%</font></td>
<td sdval="2.06657420249653" sdnum="2052;0;0.0%" align="RIGHT"><font face="DejaVu Serif">206.7%</font></td>
</tr>
<tr>
<td height="17" align="RIGHT"><font face="DejaVu Serif">bicg.c</font></td>
<td sdval="0.577" sdnum="2052;" align="RIGHT">0.577</td>
<td sdval="0.597" sdnum="2052;" align="RIGHT">0.597</td>
<td sdval="1.01" sdnum="2052;" align="RIGHT">1.01</td>
<td sdval="0.0346620450606586" sdnum="2052;0;0.0%" align="RIGHT"><font face="DejaVu Serif">3.5%</font></td>
<td sdval="0.750433275563258" sdnum="2052;0;0.0%" align="RIGHT"><font face="DejaVu Serif">75.0%</font></td>
</tr>
<tr>
<td height="17" align="RIGHT"><font face="DejaVu Serif">gemver.c</font></td>
<td sdval="0.799" sdnum="2052;" align="RIGHT">0.799</td>
<td sdval="0.857" sdnum="2052;" align="RIGHT">0.857</td>
<td sdval="1.296" sdnum="2052;" align="RIGHT">1.296</td>
<td sdval="0.0725907384230287" sdnum="2052;0;0.0%" align="RIGHT"><font face="DejaVu Serif">7.3%</font></td>
<td sdval="0.622027534418023" sdnum="2052;0;0.0%" align="RIGHT"><font face="DejaVu Serif">62.2%</font></td>
</tr>
<tr>
<td height="17" align="RIGHT"><font face="DejaVu Serif">lu.c</font></td>
<td sdval="0.68" sdnum="2052;" align="RIGHT">0.68</td>
<td sdval="0.702" sdnum="2052;" align="RIGHT"><font face="DejaVu Serif">0.702</font></td>
<td sdval="1.132" sdnum="2052;" align="RIGHT"><font face="DejaVu Serif">1.132</font></td>
<td sdval="0.0323529411764706" sdnum="2052;0;0.0%" align="RIGHT"><font face="DejaVu Serif">3.2%</font></td>
<td sdval="0.664705882352941" sdnum="2052;0;0.0%" align="RIGHT"><font face="DejaVu Serif">66.5%</font></td>
</tr>
<tr>
<td height="17" align="RIGHT"><font face="DejaVu Serif">Average</font></td>
<td align="RIGHT"><br></td>
<td align="RIGHT"><br></td>
<td align="RIGHT"><br></td>
<td sdval="0.0249007379943874" sdnum="2052;0;0.00%" align="RIGHT"><font face="DejaVu Serif">2.49%</font></td>
<td sdval="1.42096546396898" sdnum="2052;0;0.00%" align="RIGHT"><font face="DejaVu Serif">142.10%</font></td>
</tr>
</tbody>
</table>
<br>Experimental results show that Polly analysis and optimization can leads to 142% extra compiling overhead, which maybe unacceptable in many large software building. As a result, it is an urgent task to reduce the compiling time of Polly analysis and optimization.<br><br>My plan for this proposal is to reduce Polly compiling overhead step by step:<br>1) Investigate the details of Polly, find out how much time spent on analysis and how much time spent on optimization. Of course it is very important to distinguish the overhead on codes where Polly is applicable and codes where Polly is not applicable.<br>2) Profile the Polly to find out the hot code and find out the sources of compiling overhead; Based on the profiling, I will try to rewrite the hot code to improving the compiling process.<br>3) Remove expensive analysis passes. For example, the scop detection currently requires both the post-dominance analysis<br>as well as the dominance frontier analysis. Not requir!
ing these up front (at all) would be great.<br>4) Canonicalization passes scheduled before Polly. Before running Polly, we currently schedule a set of passes to canonicalize the LLVM-IR on which the scop detection is run on. If I can reduce the number of preparing passes, then the compiling overhead can be reduced.<br>5) Find out other ways to reduce compiling overhead.<br><br>Hope you can give me further advices.<br><br>Best Regards,<br>Star Tan<br></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"><span title="neteasefooter"><span id="netease_mail_footer"><a href="#" target="_blank"></a></span></span>
</span></span>