<div dir="ltr">Hi,<div><br></div><div>I found some cases which can be improved in LLVM optimizer:</div><div><a href="https://godbolt.org/g/g5y9Qf">https://godbolt.org/g/g5y9Qf</a><br></div><div><br></div><div>To summarize, folding memcpy calls could be interesting optimization to explore, but maybe not so trivially to implement.</div><div><br></div><div>Memcpy + strlen case should be easy to implement, I think I would look on it.</div><div><br></div><div>Thanks</div></div>