[PATCH] D115602: [X86] Memset is lowered to rep stos if MinSize is present
Daniil Seredkin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 12 11:21:03 PST 2021
vdsered added a comment.
Regarding the tests in memset-minsize.ll... I compiled it with llc and then check with llvm-readobj --symbols.
The results how their size changed are in the following table (before and after in bytes):
| Test name | Before | After |
| tiny_memset_to_rep_stos | 5 | 5 |
| small_memset_to_rep_stos | 8 | 8 |
| medium_memset_to_rep_stos | 15 | 10 |
| large_memset_to_rep_stos | 15 | 10 |
| huge_memset_to_rep_stos | 15 | 10 |
| odd_length_memset_to_rep_stos | 15 | 10 |
| align_1_memset_to_rep_stos | 15 | 10 |
| align_2_memset_to_rep_stos | 15 | 11 |
| align_4_memset_to_rep_stos | 15 | 8 |
| align_8_memset_to_rep_stos | 15 | 8 |
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D115602/new/
https://reviews.llvm.org/D115602
More information about the llvm-commits
mailing list