annotate gcc/config/avr/avr-passes.def @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 84e7813d76e9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* Description of target passes for AVR.
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
2 Copyright (C) 2016-2020 Free Software Foundation, Inc. */
111
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 /* This file is part of GCC.
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 GCC is free software; you can redistribute it and/or modify it under
kono
parents:
diff changeset
7 the terms of the GNU General Public License as published by the Free
kono
parents:
diff changeset
8 Software Foundation; either version 3, or (at your option) any later
kono
parents:
diff changeset
9 version.
kono
parents:
diff changeset
10
kono
parents:
diff changeset
11 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
kono
parents:
diff changeset
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
kono
parents:
diff changeset
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
kono
parents:
diff changeset
14 for more details.
kono
parents:
diff changeset
15
kono
parents:
diff changeset
16 You should have received a copy of the GNU General Public License
kono
parents:
diff changeset
17 along with GCC; see the file COPYING3. If not see
kono
parents:
diff changeset
18 <http://www.gnu.org/licenses/>. */
kono
parents:
diff changeset
19
kono
parents:
diff changeset
20 /* An analysis pass that runs prior to prologue / epilogue generation.
kono
parents:
diff changeset
21 Computes cfun->machine->gasisr.maybe which is used in prologue and
kono
parents:
diff changeset
22 epilogue generation provided -mgas-isr-prologues is on. */
kono
parents:
diff changeset
23
kono
parents:
diff changeset
24 INSERT_PASS_BEFORE (pass_thread_prologue_and_epilogue, 1, avr_pass_pre_proep);
kono
parents:
diff changeset
25
kono
parents:
diff changeset
26 /* This avr-specific pass (re)computes insn notes, in particular REG_DEAD
kono
parents:
diff changeset
27 notes which are used by `avr.c::reg_unused_after' and branch offset
kono
parents:
diff changeset
28 computations. These notes must be correct, i.e. there must be no
kono
parents:
diff changeset
29 dangling REG_DEAD notes; otherwise wrong code might result, cf. PR64331.
kono
parents:
diff changeset
30
kono
parents:
diff changeset
31 DF needs (correct) CFG, hence right before free_cfg is the last
kono
parents:
diff changeset
32 opportunity to rectify notes. */
kono
parents:
diff changeset
33
kono
parents:
diff changeset
34 INSERT_PASS_BEFORE (pass_free_cfg, 1, avr_pass_recompute_notes);
kono
parents:
diff changeset
35
kono
parents:
diff changeset
36 /* casesi uses a SImode switch index which is quite costly as most code will
kono
parents:
diff changeset
37 work on HImode or QImode. The following pass runs right after .expand and
kono
parents:
diff changeset
38 tries to fix such situations by operating on the original mode. This
kono
parents:
diff changeset
39 reduces code size and register pressure.
kono
parents:
diff changeset
40
kono
parents:
diff changeset
41 The assertion is that the code generated by casesi is unaltered and a
kono
parents:
diff changeset
42 a sign-extend or zero-extend from QImode or HImode precedes the casesi
kono
parents:
diff changeset
43 insns withaout any insns in between. */
kono
parents:
diff changeset
44
kono
parents:
diff changeset
45 INSERT_PASS_AFTER (pass_expand, 1, avr_pass_casesi);