<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 - JumpThread/PRE of assumes with partially available conditions"
   href="https://bugs.llvm.org/show_bug.cgi?id=43182">43182</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>JumpThread/PRE of assumes with partially available conditions
          </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>define void @test(i1 %cnd, i32* %p, i32 %v) {
  br i1 %cnd, label %taken, label %.merge_crit_edge

.merge_crit_edge:                                 ; preds = %0
  %load.pre = load i32, i32* %p, align 4
  br label %merge

taken:                                            ; preds = %0
  store i32 %v, i32* %p, align 4
  br label %merge

merge:                                            ; preds = %.merge_crit_edge,
%taken
  %load = phi i32 [ %load.pre, %.merge_crit_edge ], [ %v, %taken ]
  %c = icmp eq i32 %load, %v
  tail call void @llvm.assume(i1 %c)
  ret void
}

declare void @llvm.assume(i1)

The assume should be sunk into the .merge_crit_edge as the fact is trivially
known to be true along the taken path.</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>