[PATCH] D64382: Use getMostFrequentByte to decide if should used memset+stores

Vitaly Buka via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 8 17:23:28 PDT 2019


vitalybuka created this revision.
vitalybuka added reviewers: eugenis, pcc, jfb.
Herald added subscribers: cfe-commits, dexonsmith.
Herald added a project: clang.
vitalybuka added a parent revision: D64111: Add getMostFrequentByte and use for isBytewiseValue implementation.

Previous implementation handled only memsets to zero.
There is options for other optimization which I left for separate patches and
tried to keep 'zeros' behavior unchanged.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D64382

Files:
  clang/lib/CodeGen/CGDecl.cpp
  clang/test/CodeGenCXX/auto-var-init.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64382.208551.patch
Type: text/x-patch
Size: 11714 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190709/9d7b06fd/attachment-0001.bin>


More information about the cfe-commits mailing list