<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 --- - Assert in LoopUnroll.cpp: Loops should be in LCSSA form after loop-unroll."
   href="https://llvm.org/bugs/show_bug.cgi?id=26688">26688</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Assert in LoopUnroll.cpp: Loops should be in LCSSA form after loop-unroll.
          </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>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>karl-johan.karlsson@ericsson.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=15929" name="attach_15929" title="Reproducer: ./opt -S -loop-rotate -licm -instcombine -loop-unroll ./loopunroll.ll -o -">attachment 15929</a> <a href="attachment.cgi?id=15929&action=edit" title="Reproducer: ./opt -S -loop-rotate -licm -instcombine -loop-unroll ./loopunroll.ll -o -">[details]</a></span>
Reproducer: ./opt -S -loop-rotate -licm -instcombine -loop-unroll
./loopunroll.ll -o -

$ ./opt -S -loop-rotate -licm -instcombine -loop-unroll ./loopunroll.ll -o -
opt: ../lib/Transforms/Utils/LoopUnroll.cpp:604: bool
llvm::UnrollLoop(llvm::Loop *, unsigned int, unsigned int, bool, bool, unsigned
int, llvm::LoopInfo *, llvm::ScalarEvolution *, llvm::DominatorTree *,
llvm::AssumptionCache *, bool): Assertion `OuterL->isLCSSAForm(*DT) && "Loops
should be in LCSSA form after loop-unroll."' failed.
0  opt             0x00000000016a1138
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 40
1  opt             0x000000000169f906 llvm::sys::RunSignalHandlers() + 54
2  opt             0x00000000016a1c6a
3  libpthread.so.0 0x00007f3231779340
4  libc.so.6       0x00007f32309a1cc9 gsignal + 57
5  libc.so.6       0x00007f32309a50d8 abort + 328
6  libc.so.6       0x00007f323099ab86
7  libc.so.6       0x00007f323099ac32
8  opt             0x00000000016f3844
9  opt             0x00000000015848c9
10 opt             0x0000000000f1ad7f
llvm::LPPassManager::runOnFunction(llvm::Function&) + 799
11 opt             0x00000000012cfc78
llvm::FPPassManager::runOnFunction(llvm::Function&) + 344
12 opt             0x00000000012cfebb
llvm::FPPassManager::runOnModule(llvm::Module&) + 43
13 opt             0x00000000012d0375
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 869
14 opt             0x000000000062036e main + 8670
15 libc.so.6       0x00007f323098cec5 __libc_start_main + 245
16 opt             0x000000000060f96c
Stack dump:
0.      Program arguments: ./opt -S -loop-rotate -licm -instcombine
-loop-unroll ./loopunroll.ll -o - 
1.      Running pass 'Function Pass Manager' on module './loopunroll.ll'.
2.      Running pass 'Loop Pass Manager' on function '@fn1'
3.      Running pass 'Unroll loops' on basic block '%bb4'
Aborted (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>