<div dir="ltr"><div><div><div><div><div><div>Hi,<br><br></div>I am trying to understand the semantics of Instructions in llvm.<br><br></div>Are the following instructions semantically same?<br><i> %add2 = add nsw i32 %add, %add1<br>
%add3 = add i32 %add, %add1<br><br></i></div>Based<i> </i>on my understanding from the Language Reference Manual, I think they are different. <br></div>But then why is the <i>gvn</i> pass detecting <i>%add3</i> as redundant and deleting it?<br>
<br></div>Your views are appreciated.<br></div>Rekha<br clear="all"><div><div><div><div><div><div><div><div><br>-- <br>Rekha
</div></div></div></div></div></div></div></div></div>