* Re: Machine dependent optimization
2022-02-27 1:28 Machine dependent optimization Ezhil P
@ 2022-02-28 5:30 ` Hongtao Liu
0 siblings, 0 replies; 2+ messages in thread
From: Hongtao Liu @ 2022-02-28 5:30 UTC (permalink / raw)
To: Ezhil P; +Cc: gcc-help
On Sun, Feb 27, 2022 at 9:29 AM Ezhil P via Gcc-help
<gcc-help@gcc.gnu.org> wrote:
>
> Hi,
> I understand that Machine independent optimizations happen in the middle
> end of GCC and machine dependent optimizations happen in the back end of
> GCC.
>
> Can you please list few machine dependent optimization relevant for x-86
> processor architecture?
You can take a look at pass_insert_vzeroupper, pass_stv, and etc..
27 INSERT_PASS_AFTER (pass_reload, 1, pass_insert_vzeroupper);
28 INSERT_PASS_AFTER (pass_combine, 1, pass_stv, false /* timode_p */);
29 /* Run the 64-bit STV pass before the CSE pass so that CONST0_RTX and
30 CONSTM1_RTX generated by the STV pass can be CSEed. */
31 INSERT_PASS_BEFORE (pass_cse2, 1, pass_stv, true /* timode_p */);
32
33 INSERT_PASS_BEFORE (pass_shorten_branches, 1,
pass_insert_endbr_and_patchable_area);
34
35 INSERT_PASS_AFTER (pass_combine, 1, pass_remove_partial_avx_dependency);
--
BR,
Hongtao
^ permalink raw reply [flat|nested] 2+ messages in thread