<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 - RegionInfo is not updated correctly in polly-prepare"
   href="https://bugs.llvm.org/show_bug.cgi?id=33876">33876</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>RegionInfo is not updated correctly in polly-prepare
          </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>Other
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>philip.pfaffe@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=18829" name="attach_18829" title="Lit testcase">attachment 18829</a> <a href="attachment.cgi?id=18829&action=edit" title="Lit testcase">[details]</a></span>
Lit testcase

In polly-prepare we split the entry block of a function, and subsequently
update and preserved a precomputed RegionInfo, if it exists. The attached
testcase demonstrates this. If -region is run after -polly-prepare, the
resulting region tree looks like this:
[0] entry => <Function Return>
  [1] entry.split => for.end
    [2] for.cond => for.end

If -region is run before, the region tree is this:
[0] entry => <Function Return>
  [1] entry => for.end
    [2] for.cond => for.end

This is the correct tree before the split, but it is not correct after. The
expected result should be the same as above. If -region runs before the
CodePreparation pass, the CodePreparation pass will try to update it.

- Philip</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>