Hi, All<br><br>I want to implement DSWP Which is used for parallelization of loops. For this purpose, the loop was replaced with a new basic block in main function.<br>And new functions were created and basic blocks of Loop assigned to them.I have checked blocks and branches for Succ and Pred relation and I have not found any problems.<br>
However I get the following error:<br><i><br></i><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); "><i>opt: /home/llvm/src/include/llvm/</i><i>Support/CFG.h:105: llvm::SuccIterator<Term_, BB_>::SuccIterator(Term_) [with Term_ = llvm::TerminatorInst*, BB_ = llvm::BasicBlock]: Assertion `T && "getTerminator returned null!"' failed.<br>
0  opt 0x0848e569<br>Stack dump:<br>0.    Program arguments: opt -dot-cfg -dot-postdom -dot-dom -load /home/llvm/src/Release/lib/</i><i>parallel.so -parallel obj.o -o out.o<span class="Apple-converted-space"> </span><br>1.    Running pass 'Function Pass Manager' on module 'obj.o'.<br>
2.    Running pass 'Loop Pass Manager' on function '@main'<br>Aborted (core dumped)</i><br></span><br><br>I do not know why this error occurred.Who knows why this error occurs and what should I do?<br><br>
<br><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); ">Best  regards<br>
<font color="#888888">neda</font></span><br>