xref: /dflybsd-src/contrib/gcc-8.0/gcc/config/i386/i386-passes.def (revision 38fd149817dfbff97799f62fcb70be98c4e32523)
1*38fd1498Szrj/* Description of target passes for IA-32
2*38fd1498Szrj   Copyright (C) 2016-2018 Free Software Foundation, Inc.
3*38fd1498Szrj
4*38fd1498SzrjThis file is part of GCC.
5*38fd1498Szrj
6*38fd1498SzrjGCC is free software; you can redistribute it and/or modify it under
7*38fd1498Szrjthe terms of the GNU General Public License as published by the Free
8*38fd1498SzrjSoftware Foundation; either version 3, or (at your option) any later
9*38fd1498Szrjversion.
10*38fd1498Szrj
11*38fd1498SzrjGCC is distributed in the hope that it will be useful, but WITHOUT ANY
12*38fd1498SzrjWARRANTY; without even the implied warranty of MERCHANTABILITY or
13*38fd1498SzrjFITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14*38fd1498Szrjfor more details.
15*38fd1498Szrj
16*38fd1498SzrjYou should have received a copy of the GNU General Public License
17*38fd1498Szrjalong with GCC; see the file COPYING3.  If not see
18*38fd1498Szrj<http://www.gnu.org/licenses/>.  */
19*38fd1498Szrj
20*38fd1498Szrj/*
21*38fd1498Szrj   Macros that can be used in this file:
22*38fd1498Szrj   INSERT_PASS_AFTER (PASS, INSTANCE, TGT_PASS)
23*38fd1498Szrj   INSERT_PASS_BEFORE (PASS, INSTANCE, TGT_PASS)
24*38fd1498Szrj   REPLACE_PASS (PASS, INSTANCE, TGT_PASS)
25*38fd1498Szrj */
26*38fd1498Szrj
27*38fd1498Szrj  INSERT_PASS_AFTER (pass_reload, 1, pass_insert_vzeroupper);
28*38fd1498Szrj  INSERT_PASS_AFTER (pass_combine, 1, pass_stv, false /* timode_p */);
29*38fd1498Szrj  /* Run the 64-bit STV pass before the CSE pass so that CONST0_RTX and
30*38fd1498Szrj     CONSTM1_RTX generated by the STV pass can be CSEed.  */
31*38fd1498Szrj  INSERT_PASS_BEFORE (pass_cse2, 1, pass_stv, true /* timode_p */);
32*38fd1498Szrj
33*38fd1498Szrj  INSERT_PASS_BEFORE (pass_shorten_branches, 1, pass_insert_endbranch);
34