<div dir="ltr">Hi Tim,<br><div><div><br>Instruction does not dominate all uses!<br> %5 = icmp ne i32 %4, 0<br> br i1 %5, label %BB1, label %BB2<br>Broken module found, compilation aborted!<br><br><br><br></div></div></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On 8 September 2013 11:58, Tim Northover <span dir="ltr"><<a href="mailto:t.p.northover@gmail.com" target="_blank">t.p.northover@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Rasha,<br>
<div class="im"><br>
> Instruction does not dominate all uses!<br>
<br>
</div>There should be two instructions printed after that message. The first<br>
defines a value used by the second, but the message means there's some<br>
path through your function that can reach the second inst (the use)<br>
without the value being defined by the first instruction.<br>
<br>
At its simplest you probably want to decide what that value should be<br>
if the defining instruction isn't reached (maybe an initial loop<br>
value?), insert a phi node describing this and use that instead of the<br>
instruction that may not be executed.<br>
<div class="im"><br>
> Could you help for this ?<br>
<br>
</div>Not without more information, I'm afraid. The fragment you posted has no issues.<br>
<br>
Cheers.<br>
<span class="HOEnZb"><font color="#888888"><br>
Tim.<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><b style="color:rgb(32,18,77)"><span>     </span>Rasha Salah Omar<br><span>    </span> Msc Student at E-JUST<br><span>    </span> Demonestrator  at Faculty of Computers and Informatics<br>
<span>    </span> Benha University</b>
<p style="color:rgb(32,18,77);font-size:13px;font-family:arial,helvetica,clean,sans-serif;background-color:transparent;font-style:normal"><b><span>     e-mail: <a href="mailto:rasha.omar@ejust.edu.eg" target="_blank">rasha.omar@ejust.edu.eg</a></span></b></p>

<font size="4"><span style="font-family:Arial,Helvetica,sans-serif;font-size:12px;border-collapse:collapse;color:rgb(69,69,69)"><div style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;display:block;line-height:normal">

<span style="font-size:20pt;color:rgb(0,176,80);font-family:Webdings">P</span><b><span style="font-size:11pt;color:rgb(0,176,80);font-family:sans-serif"> Please consider the environment before printing this email.</span></b></div>
</span></font><br></div>
</div>