<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 - opt crashes with -loop-deletion pass"
   href="https://bugs.llvm.org/show_bug.cgi?id=39645">39645</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>opt crashes with -loop-deletion pass
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>6.0
          </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>Loop Optimizer
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>cszide@163.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=21115" name="attach_21115" title="reduced file produced by bugpoint">attachment 21115</a> <a href="attachment.cgi?id=21115&action=edit" title="reduced file produced by bugpoint">[details]</a></span>
reduced file produced by bugpoint

Running opt crashes with pass -loop-deletion on the attached .bc.
The test system is Ubuntu 18.04, x86_64. I have tested it using llvm 6.0 and
the latest llvm code from github.

The following is the output:

Load operand must be a pointer.
  %44 = load i32, void LLVMSymbolizer: error reading file: No such file or
directory
#0 0x0000000001a68794 (opt+0x1a68794)
#1 0x0000000001a68a76 (opt+0x1a68a76)
#2 0x00007fdac5698890 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x12890)
#3 0x0000000001542955 (opt+0x1542955)
#4 0x000000000154172f (opt+0x154172f)
#5 0x000000000153c4fc (opt+0x153c4fc)
#6 0x0000000001537c28 (opt+0x1537c28)
#7 0x000000000165c9cc (opt+0x165c9cc)
#8 0x000000000165130a (opt+0x165130a)
#9 0x00000000016403d8 (opt+0x16403d8)
#10 0x0000000001660b8d (opt+0x1660b8d)
#11 0x00000000016021eb (opt+0x16021eb)
#12 0x0000000001602453 (opt+0x1602453)
#13 0x0000000001602858 (opt+0x1602858)
#14 0x000000000075b292 (opt+0x75b292)
#15 0x00007fdac456bb97 __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x21b97)
#16 0x000000000074c1b9 (opt+0x74c1b9)
Stack dump:
0.      Program arguments: opt -loop-deletion bugpoint-reduced-simplified.bc
-disable-output 
1.      Running pass 'Function Pass Manager' on module
'bugpoint-reduced-simplified.bc'.
2.      Running pass 'Module Verifier' on function '@put2bitbwtile'
Segmentation fault (core dumped)</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>