Re: [PATCH 1/2] expand: Small speed up expansion of __builtin_prefetch

2024-08-29 Thread Richard Biener
On Fri, Aug 30, 2024 at 1:02 AM Andrew Pinski wrote: > > This is a small speed up of the expansion of __builtin_prefetch. > Basically for the optional arguments, no reason to call expand_normal > on a constant integer that we know the value, just replace it with > GEN_INT/const0_rtx instead. > > B

[PATCH 1/2] expand: Small speed up expansion of __builtin_prefetch

2024-08-29 Thread Andrew Pinski
This is a small speed up of the expansion of __builtin_prefetch. Basically for the optional arguments, no reason to call expand_normal on a constant integer that we know the value, just replace it with GEN_INT/const0_rtx instead. Bootstrapped and tested on x86_64-linux. gcc/ChangeLog: *