[Bug target/102294] memset expansion is sometimes slow for small sizes

2021-09-13 Thread bart.vanassche at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102294 --- Comment #13 from Bart Van Assche --- Hi H.J. Lu, thank you for having taken a look. I would like to try your patch. However, I'm not a gcc developer so I don't have a gcc tree checked out on my development workstation. It may take some time

[Bug middle-end/102294] memset expansion is sometimes slow for small sizes

2021-09-12 Thread bart.vanassche at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102294 --- Comment #9 from Bart Van Assche --- Hmm ... isn't movups a floating-point instruction? I want to avoid floating point instructions since my understanding is that it is not allowed to use these in kernel code. See e.g.

[Bug middle-end/102294] memset expansion is sometimes slow for small sizes

2021-09-12 Thread bart.vanassche at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102294 --- Comment #7 from Bart Van Assche --- Initializing small data structures via structure assignment is a common approach in the Linux kernel. This is the code gcc generates with the no-sse option applied: (gdb) disas bio_init3 Dump of

[Bug middle-end/102294] structure assignment slower than memberwise initialization

2021-09-12 Thread bart.vanassche at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102294 --- Comment #5 from Bart Van Assche --- Please note that bio_init3() does not use atomic_set() but ATOMIC_INIT(). The definition of ATOMIC_INIT() is as follows: #define ATOMIC_INIT(v) (atomic_t){.counter = (v)}

[Bug middle-end/102294] structure assignment slower than memberwise initialization

2021-09-12 Thread bart.vanassche at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102294 --- Comment #3 from Bart Van Assche --- Thanks for the quick feedback. I have modified the test program and added target("no-sse") to the bio_init[123]() functions. With that change applied the results are as follows: $ gcc -O2 -o bio_init

[Bug middle-end/102294] structure assignment slower than memberwise initialization

2021-09-12 Thread bart.vanassche at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102294 Bart Van Assche changed: What|Removed |Added Attachment #51444|0 |1 is obsolete|

[Bug c/102294] New: structure assignment slower than memberwise initialization

2021-09-12 Thread bart.vanassche at gmail dot com via Gcc-bugs
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: bart.vanassche at gmail dot com Target Milestone: --- Created attachment 51444 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51444=edit Test program that illustrates the is

[Bug middle-end/52925] [4.5/4.6 Regression] var-tracking never terminates

2012-04-10 Thread bart.vanassche at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52925 Bart Van Assche bart.vanassche at gmail dot com changed: What|Removed |Added CC

[Bug libstdc++/51504] New: Data race hunting instructions in manual do not work

2011-12-11 Thread bart.vanassche at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51504 Bug #: 51504 Summary: Data race hunting instructions in manual do not work Classification: Unclassified Product: gcc Version: 4.6.2 Status: UNCONFIRMED Severity: normal

[Bug libstdc++/51504] Data race hunting instructions in manual do not work

2011-12-11 Thread bart.vanassche at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51504 --- Comment #1 from Bart Van Assche bart.vanassche at gmail dot com 2011-12-11 20:26:47 UTC --- Created attachment 26049 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=26049 Detailed DRD output for the test program