[PATCH] D44769: [Analysis] Support aligned new/delete functions.

Eric Fiselier via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 21 18:41:46 PDT 2018


EricWF created this revision.
EricWF added reviewers: rsmith, majnemer, dblaikie, vsk, bkramer.

Clang's __builtin_operator_new/delete was recently taught about the aligned allocation overloads (r328134). This patch makes LLVM aware of them as well.
This allows the compiler to perform certain optimizations including eliding new/delete calls.


Repository:
  rL LLVM

https://reviews.llvm.org/D44769

Files:
  include/llvm/Analysis/TargetLibraryInfo.def
  lib/Analysis/MemoryBuiltins.cpp
  lib/Analysis/TargetLibraryInfo.cpp
  test/Transforms/InstCombine/malloc-free-delete.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44769.139406.patch
Type: text/x-patch
Size: 7902 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180322/00b1f348/attachment.bin>


More information about the llvm-commits mailing list