[all-commits] [llvm/llvm-project] 521b21: [TargetLibraryInfo] memcpy and memset have optimiz...

Clement Courbet via All-commits all-commits at lists.llvm.org
Mon May 18 00:37:36 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 521b216094340e7934c1dd7905982cc778237cb8
      https://github.com/llvm/llvm-project/commit/521b216094340e7934c1dd7905982cc778237cb8
  Author: Clement Courbet <courbet at google.com>
  Date:   2020-05-18 (Mon, 18 May 2020)

  Changed paths:
    M llvm/include/llvm/Analysis/TargetLibraryInfo.h

  Log Message:
  -----------
  [TargetLibraryInfo] memcpy and memset have optimized codegen.

Summary:
Add memcpy and memset to the list of function with optimized codegen.
hasOptimizedCodeGen() was returning false for them.
This was not an issue when working with c++ as clang typically emits an
intrinsic rather than a libfunc call, but when working with IR,
this would cause some issues with sanitizers which would not correctly
mark the function as nobuiltin in `maybeMarkSanitizerLibraryCallNoBuiltin()`.

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D78991




More information about the All-commits mailing list