<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 --- - deadargelim crashes"
   href="https://llvm.org/bugs/show_bug.cgi?id=24906">24906</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>deadargelim crashes
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </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>Interprocedural Optimizations
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>sanxiyn@gmail.com
          </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=14922" name="attach_14922" title="Test case">attachment 14922</a> <a href="attachment.cgi?id=14922&action=edit" title="Test case">[details]</a></span>
Test case

r248246.

Reduced from <a href="https://github.com/rust-lang/rust/issues/28066">https://github.com/rust-lang/rust/issues/28066</a>

$ opt -disable-output -deadargelim 28066.ll
Instruction does not dominate all uses!
  %oldret6 = insertvalue %s %oldret4, i32 %newret5, 1
  %tmp3 = phi %s [ %oldret6, %bb1 ], [ %oldret2, %bb2 ]
Instruction does not dominate all uses!
  %oldret2 = insertvalue %s %oldret, i32 %newret1, 1
  %tmp3 = phi %s [ %oldret6, %bb1 ], [ %oldret2, %bb2 ]
Instruction does not dominate all uses!
  %tmp1 = invoke { i32, i32 } @f()
          to label %bb3 unwind label %bb4
  %newret3 = extractvalue { i32, i32 } %tmp1, 0
Instruction does not dominate all uses!
  %tmp1 = invoke { i32, i32 } @f()
          to label %bb3 unwind label %bb4
  %newret5 = extractvalue { i32, i32 } %tmp1, 1
Instruction does not dominate all uses!
  %tmp2 = invoke { i32, i32 } @f()
          to label %bb3 unwind label %bb4
  %newret = extractvalue { i32, i32 } %tmp2, 0
Instruction does not dominate all uses!
  %tmp2 = invoke { i32, i32 } @f()
          to label %bb3 unwind label %bb4
  %newret1 = extractvalue { i32, i32 } %tmp2, 1
LLVM ERROR: Broken function found, compilation aborted!</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>