<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Register Tiling of two not handled correctly"
   href="https://bugs.llvm.org/show_bug.cgi?id=32625">32625</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Register Tiling of two not handled correctly
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Polly
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Optimizer
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>polly-dev@googlegroups.com
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>khaldi.dounia@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>In the following code:
void MVM(float *__restrict A, float *__restrict B, float *__restrict C, int M,
int K){
    for(int i=0;i<M;i+=1){
      for (int k = 0; k<K; k++){
        C[i]+=A[i+k*M]*B[k];
      }
    }
  }

When I choose to register tile Loop k by 2. I get this
for (int c1 = 0; c1 < floord(K + 1, 2); c1 += 1) {

And then __builtin_assume(K % 2 == 0); does not replace the above by for (int
c1 = 0; c1 < K/ 2); c1 += 1)  and thus does not remove the conditionals in the
register tiling output.

Apparently this is related to the fact that division by two is translated to a
 shift, which is not handled correctly yet. This needs a fix.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>