<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 - input module is broken! (Intrinsic has incorrect argument type!)"
   href="https://bugs.llvm.org/show_bug.cgi?id=36424">36424</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>input module is broken!  (Intrinsic has incorrect argument type!)
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>tools
          </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>bugpoint
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>paulsson@linux.vnet.ibm.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=19887" name="attach_19887" title="original test case">attachment 19887</a> <a href="attachment.cgi?id=19887&action=edit" title="original test case">[details]</a></span>
original test case

It seems to me that bugpoint is generating an incorrect program somehow and
fails to recognize this.

The original test case triggers an assert in NewGVN:

bin/opt -O3 -mcpu=z13 -S crash10.bc -enable-newgvn

opt: /home/ijonpan/llvm/llvm-dev-2/lib/Transforms/Scalar/NewGVN.cpp:3285: void
{anonymous}::NewGVN::verifyIterationSettled(llvm::Function&): Assertion
`BeforeCC->isEquivalentTo(AfterCC) && "Value number changed after main loop
completed!"' failed.
#0
...

I tried to reduce this, but bugpoint crashed with my script, in a way I have
not seen before:

...
Intrinsic has incorrect argument type!
void (i8*, i8*, i64, i1)* @llvm.memcpy.p0i8.p0i8.i64
/home/ijonpan/llvm/build/llvm-dev/bin/opt: bugpoint-input-d2e260a.bc: error:
input module is broken!
verify failed!

What is the reason for this? I don't know how bugpoint reduces the program, or
if the -enable-newgvn variable is somehow responsible?</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>