<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 - [SCEV] Violation of proposed definitional flag rules"
   href="https://bugs.llvm.org/show_bug.cgi?id=51817">51817</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[SCEV] Violation of proposed definitional flag rules
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </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>Scalar Optimizations
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>listmail@philipreames.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>This bug exists to track known violations of the proposed nowrap flag semantics
for SCEV in <a href="https://reviews.llvm.org/D109553">https://reviews.llvm.org/D109553</a>.  If that proposal is accepted,
this becomes a punch list.  If it isn't, it will be closed as invalid.

Issues known at time of filing
* When folding loop invariant terms into an AddRec's start (in getAddExpr), we
propagate flag valid in the defining scope of the AddRec outside of it.  This
is D106852.
* In applyLoopGuards, we apply contextual flags when reasoning about the
replacement given a urem expression.  Removing this causes no test diffs.
* In getGEPExpr, we blindly copy flags from the IR gep (if inbounds) to the
corresponding MulExprs and AddExpr.  This creates a set of SCEVs with
non-definitional flags.  As noted in the fixme, we should be using similar
logic to AddRecNeverPoison here.</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>