<div dir="ltr">Hello all,<div><br></div><div>There was a discussion (<a href="https://reviews.llvm.org/D100717">https://reviews.llvm.org/D100717</a>) about whether using TBAA type descriptor metadata's type name as hints for optimizations is okay.</div><div><br></div><div>The patch is using the type name to determine whether converting memcpy to load/store of integer is beneficial or not.</div><div>If the memcpy was copying a struct containing a pointer member, this becomes the source of a lot of inttoptr casts because the later store forwarding needs them.</div><div>The introduced inttoptr casts are later removed by cast elimination (`inttoptr(ptrtoint p) -> p`), but there are issues (e.g. <a href="http://llvm.org/pr34548">http://llvm.org/pr34548</a>) which is deeply related with its validity.</div><div><br></div><div>A suggested clarification to LangRef is made at <a href="https://reviews.llvm.org/D101185">https://reviews.llvm.org/D101185</a> as well - </div><div>feel free to leave comments here and there.</div><div><br></div><div>Thanks,</div><div>Juneyoung</div><div><br></div></div>