[PATCH] D56582: [InstCombine]Avoid introduction of unaligned mem access

Serguei Katkov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 11 01:03:59 PST 2019


skatkov created this revision.
skatkov added reviewers: reames, anna, apilipenko, mkazantsev.
Herald added a subscriber: jfb.

InstCombine is able to transform mem transfer instrinsic to alone store or store/load pair.
It might result in generation of unaligned atomic load/store which later in backend
will be transformed to libcall. It is not an evident gain and it is better to keep intrinsic as is
and handle it at backend.


https://reviews.llvm.org/D56582

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56582.181218.patch
Type: text/x-patch
Size: 12417 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190111/d14c4528/attachment.bin>


More information about the llvm-commits mailing list