On Sun, Feb 27, 2022 at 9:29 AM Ezhil P via Gcc-help <gcc-help@xxxxxxxxxxx> 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