<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body dir="auto">
<div>Depending on the situation, you either want to use mem2reg or GVN.<br>
<br>
Sent from my iPhone</div>
<div><br>
On Aug 13, 2013, at 1:02 AM, "Li Bin" <<a href="mailto:richardustc@gmail.com">richardustc@gmail.com</a>> wrote:<br>
<br>
</div>
<blockquote type="cite">
<div>
<div dir="ltr">Hi,
<div> We are writing a binary translator with LLVM. There are a lot of duplicated load/store IR instruction generated by our binary translator. </div>
<div> Is there any kind of optimization pass which can eliminate those duplicated load/store instruction? We know that this kind of optimization can be harmful under some circumstances such as multi-threading, but it's safe in our model.</div>
<div>
<div>
<div dir="ltr">
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Bin LI,</div>
<div>State Key Laboratory of Computer Architecture,</div>
<div>Institute of Computing Technology of Chinese Academy of Sciences,</div>
<div>Address: NO.6 Kexueyuan South Road, Haidian District, Beijing, China</div>
<div>email: <a href="mailto:richardustc@gmail.com" target="_blank">richardustc@gmail.com</a></div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<blockquote type="cite">
<div><span>_______________________________________________</span><br>
<span>LLVM Developers mailing list</span><br>
<span><a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a> <a href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</a></span><br>
<span><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a></span><br>
</div>
</blockquote>
</body>
</html>