[PATCH] D46660: [InstCombine] Handle atomic memset in the same way as regular memset

Daniel Neilson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 9 13:05:52 PDT 2018


dneilson created this revision.
dneilson added reviewers: apilipenko, skatkov, mkazantsev, anna.

This change adds handling of the atomic memset intrinsic to the
code path that simplifies the regular memset. In practice this means
that we will now also expand a small constant-length atomic memset
into a single unordered atomic store.


Repository:
  rL LLVM

https://reviews.llvm.org/D46660

Files:
  lib/Transforms/InstCombine/InstCombineCalls.cpp
  lib/Transforms/InstCombine/InstCombineInternal.h
  test/Transforms/InstCombine/element-atomic-memintrins.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46660.145992.patch
Type: text/x-patch
Size: 6578 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180509/ed0d6191/attachment.bin>


More information about the llvm-commits mailing list