[PATCH] D29424: [PPC] WIP - Add statistics for mem* fucntions

Sean Fertile via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 1 13:58:05 PST 2017


sfertile created this revision.

Add Statistics for memset/memcpy/memmove/memcmp functions.

Counts the number of times one of these functions is lowered, and if the call has a know size at compile time. If the Call has a know size then we bucket the size into small/med/large.

For the intrinsics, the alignment of the arguments is checked and recorded if they have

1. worst-case alignment
2. ideal alignment

Finally I add an option that allows tuning the maximum number of memory-operatons done in a n expansion of memcpy/memset/memmove.


Repository:
  rL LLVM

https://reviews.llvm.org/D29424

Files:
  lib/CodeGen/SelectionDAG/SelectionDAG.cpp
  lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
  lib/Target/PowerPC/PPCISelLowering.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29424.86710.patch
Type: text/x-patch
Size: 14126 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170201/bbde5fc4/attachment.bin>


More information about the llvm-commits mailing list