<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </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 --- - Delinearization fails and produces invariant access function for variant access"
   href="https://llvm.org/bugs/show_bug.cgi?id=27013">27013</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Delinearization fails and produces invariant access function for variant access
          </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>normal
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>Other
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>doerfert@cs.uni-saarland.de
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=16064" name="attach_16064" title="IR testcase">attachment 16064</a> <a href="attachment.cgi?id=16064&action=edit" title="IR testcase">[details]</a></span>
IR testcase

For the C code:

for (MCUindex = 0; MCUindex < MCUs_across; MCUindex++) { 
  lastDC = lastblockrow[h_samp_factor - 1][0]; 
  for (bi = 0; bi < h_samp_factor; bi++) { 
    thisblockrow[bi][0] = lastDC;
  } 
  thisblockrow += h_samp_factor; /* advance to next MCU in row */ 
  lastblockrow += h_samp_factor; 


in

  MultiSource/Benchmarks/mediabench/jpeg/jpeg-6a/jccoefct.c

we generate variant multidimensional accesses even though there are none.
This causes us to hoist "lastblockrow[h_samp_factor - 1][0]", thus
mis-compiling the code. The problem seems to be the PHI nodes that change the
pointers for "thisblockrow" and "lastblockrow" break some delinarization
process.

NOTE: You need to allow unsigned comparisons (or change the unsigned comparison
in the code)!</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>