<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 --- - Opt crashes on loop-interchange (llvm-3.7.1)"
   href="https://llvm.org/bugs/show_bug.cgi?id=26478">26478</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Opt crashes on loop-interchange (llvm-3.7.1)
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>tools
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.7
          </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>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>opt
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>cyt046@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=15828" name="attach_15828" title="run with `opt bug.bc -loop-interchange` to reproduce the bug">attachment 15828</a> <a href="attachment.cgi?id=15828&action=edit" title="run with `opt bug.bc -loop-interchange` to reproduce the bug">[details]</a></span>
run with `opt bug.bc -loop-interchange` to reproduce the bug

Hi.
I am experimenting with optimizations ordering (phase ordering) in LLVM
(3.7.1), and `opt` crashes in multiple occasions. I will file bug report for
the rest of the crashes later. One of the notable ones is opt crashing on
loop-interchange.

Attached is the bugpoint-reduced bitcode file. To reproduce the bug simply run
`opt bug.bc -loop-interchange`.


The crash was encountered while running following optimizations on toast (from
test-suite/MultiSource/Benchmarks/mediabench/gsm/toast, for which I link all
the bitcode files into a single one to autotune)
```
-mem2reg -strip -lower-expect -mldst-motion -lowerinvoke -mergefunc
-scalar-evolution -da -iv-users -tbaa -da -da -early-cse -scalarrepl-ssa
-regions -lowerinvoke -delinearize -basicaa -globaldce -domtree
-loop-interchange -loop-unroll -lower-expect -loop-deletion -jump-threading
-loop-vectorize -memdep -basicaa -basiccg -loop-interchange -early-cse -basiccg
-scalarrepl-ssa -loop-interchange -domtree -simplifycfg -loop-reduce -scev-aa
-instcombine -iv-users -argpromotion -gvn -delinearize -loop-reduce -irce
-deadargelim -prune-eh -inline -simplifycfg -always-inline -scalarrepl-ssa
-lowerswitch -basiccg -loop-interchange -float2int -simplifycfg -licm
-mldst-motion -scalar-evolution -loop-unswitch -basiccg -indvars
-globalsmodref-aa -indvars -loop-vectorize -mldst-motion -loop-deletion -ipsccp
-lowerswitch -licm -iv-users -intervals -basicaa -loop-unswitch -globaldce
-loop-unswitch -float2int -strip -domtree -scalar-evolution -sccp
```</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>