SuccessChanges

Summary

  1. Fix missing memcpy, memmove and memset tail calls (details)
Commit f2cb9c0eabc132152b5b3ad4c87a5a02345a883d by Sanne.Wouda
Fix missing memcpy, memmove and memset tail calls
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
The file was modifiedllvm/lib/CodeGen/Analysis.cpp
The file was addedllvm/test/CodeGen/AArch64/tailcall-bitcast-memcpy.ll