summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AArch64/tailcall-bitcast-memcpy.ll
Commit message (Collapse)AuthorAgeFilesLines
* Fix missing memcpy, memmove and memset tail callsSanne Wouda2019-10-311-0/+18
Summary: If a wrapper around one of the mem* stdlib functions bitcasts the returned pointer value before returning it (e.g. to a wchar_t*), LLVM does not emit a tail call. Add a check for this scenario so that we emit a tail call. Reviewers: wmi, mkuper, ramred01, dmgreen Reviewed By: wmi, dmgreen Subscribers: hiraditya, sanwou01, javed.absar, lebedev.ri, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D59078
OpenPOWER on IntegriCloud