<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>