[PATCH] D32872: [PowerPC] Leverage PGO data to version/expand small/large memcpy calls
Lei Huang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 4 10:30:05 PDT 2017
lei created this revision.
This is the subsequent patch to https://reviews.llvm.org/D31772 which leverage pgo profiling data to make better decisions about when and under what conditions to actually perform known size memcpy call expansion and/or unknown size memcpy call versioning.
If PGO info exists and call is != cold:
- expand valid known size memcpy calls
- version unknown sized memcpy calls
If PGO info does not exists
- expand valid known size memcpy calls
- do NOT version unknown sized memcpy calls
https://reviews.llvm.org/D32872
Files:
lib/Target/PowerPC/PPCLowerMemIntrinsics.cpp
test/CodeGen/PowerPC/memcpy-loop-expansion.ll
test/CodeGen/PowerPC/memcpy.nopgo.ll
test/CodeGen/PowerPC/memcpy.pgo.cold.ll
test/CodeGen/PowerPC/memcpy.pgo.hot.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32872.97848.patch
Type: text/x-patch
Size: 25969 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170504/662104c7/attachment.bin>
More information about the llvm-commits
mailing list