<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 10/13/11 1:20 AM, neda 8664 wrote:
<blockquote
cite="mid:CAHbEVmSRdgR0_P0=pZdSY3DjG0XckFpELmBoFa77GU7598savw@mail.gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
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>
</blockquote>
<br>
Every basic block in LLVM is required to have a Terminator
instruction (<a class="moz-txt-link-freetext" href="http://llvm.org/docs/LangRef.html#terminators">http://llvm.org/docs/LangRef.html#terminators</a>). I
suspect that you've created a basic block without a Terminator
instruction. Call the dump() method on all the basic blocks you
added and see if they have a Terminator instruction.<br>
<br>
-- John T.<br>
<br>
<blockquote
cite="mid:CAHbEVmSRdgR0_P0=pZdSY3DjG0XckFpELmBoFa77GU7598savw@mail.gmail.com"
type="cite"><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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a> <a class="moz-txt-link-freetext" href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</a>
<a class="moz-txt-link-freetext" href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a>
</pre>
</blockquote>
<br>
</body>
</html>