diff options
author | Alexandre Oliva <oliva@adacore.com> | 2023-12-11 15:09:25 -0300 |
---|---|---|
committer | Alexandre Oliva <oliva@gnu.org> | 2023-12-11 15:31:50 -0300 |
commit | 1e2ea685bdea9aa65da2bf4137264d14f38a6f0b (patch) | |
tree | b2b5a9445b8e7062f2d00aee3d9844b8dc890d5a /gcc/c/c-tree.h | |
parent | 76ca5ab4ef95c41c1ed67edfb34a1a455a602192 (diff) | |
download | gcc-1e2ea685bdea9aa65da2bf4137264d14f38a6f0b.zip gcc-1e2ea685bdea9aa65da2bf4137264d14f38a6f0b.tar.gz gcc-1e2ea685bdea9aa65da2bf4137264d14f38a6f0b.tar.bz2 |
-finline-stringops: check base blksize for memset [PR112778]
The recently-added logic for -finline-stringops=memset introduced an
assumption that doesn't necessarily hold, namely, that
can_store_by_pieces of a larger size implies can_store_by_pieces by
smaller sizes. Checks for all sizes the by-multiple-pieces machinery
might use before committing to an expansion pattern.
for gcc/ChangeLog
PR target/112778
* builtins.cc (can_store_by_multiple_pieces): New.
(try_store_by_multiple_pieces): Call it.
for gcc/testsuite/ChangeLog
PR target/112778
* gcc.dg/inline-mem-cmp-pr112778.c: New.
Diffstat (limited to 'gcc/c/c-tree.h')
0 files changed, 0 insertions, 0 deletions