The names of split_before_sched2 ("split4") and split_before_regstack
("split3") do not reflect their insertion point in the sequence of passes,
where split_before_regstack follows split_before_sched2. Reorder the code
and rename the passes to reflect the reality.
split_before_regstack pass does not need to run if split_before_sched2 pass
was already performed. Introduce enable_split_before_sched2 function to
simplify gating functions of these two passes.
There is no need for a separate rest_of_handle_split_before_sched2.
split_all_insns can be called unconditionally from
pass_split_before_sched2::execute, since the corresponding gating function
determines if the pass is executed or not.
* recog.c: Move pass_split_before_sched2 code in front of
pass_split_before_regstack.
(pass_data_split_before_sched2): Rename pass to split3 from split4.
(pass_data_split_before_regstack): Rename pass to split4 from split3.
(rest_of_handle_split_before_sched2): Remove.
(pass_split_before_sched2::execute): Unconditionally call
split_all_insns.
(enable_split_before_sched2): New function.
(pass_split_before_sched2::gate): Use enable_split_before_sched2.
(pass_split_before_regstack::gate): Ditto.
* config/nds32/nds32.c (nds32_split_double_word_load_store_p):
Update name check for renamed split4 pass.
* config/sh/sh.c (register_sh_passes): Update pass insertion
point for renamed split4 pass.
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| constraints.md | Loading commit data... | |
| divcost-analysis | Loading commit data... | |
| divtab-sh4-300.c | Loading commit data... | |
| divtab-sh4.c | Loading commit data... | |
| divtab.c | Loading commit data... | |
| elf.h | Loading commit data... | |
| embed-elf.h | Loading commit data... | |
| iterators.md | Loading commit data... | |
| linux.h | Loading commit data... | |
| little.h | Loading commit data... | |
| netbsd-elf.h | Loading commit data... | |
| newlib.h | Loading commit data... | |
| predicates.md | Loading commit data... | |
| rtems.h | Loading commit data... | |
| rtemself.h | Loading commit data... | |
| sh-c.c | Loading commit data... | |
| sh-mem.cc | Loading commit data... | |
| sh-modes.def | Loading commit data... | |
| sh-protos.h | Loading commit data... | |
| sh.c | Loading commit data... | |
| sh.h | Loading commit data... | |
| sh.md | Loading commit data... | |
| sh.opt | Loading commit data... | |
| sh1.md | Loading commit data... | |
| sh4-300.md | Loading commit data... | |
| sh4.md | Loading commit data... | |
| sh4a.md | Loading commit data... | |
| sh_optimize_sett_clrt.cc | Loading commit data... | |
| sh_treg_combine.cc | Loading commit data... | |
| superh.h | Loading commit data... | |
| superh.opt | Loading commit data... | |
| sync.md | Loading commit data... | |
| t-linux | Loading commit data... | |
| t-rtems | Loading commit data... | |
| t-sh | Loading commit data... | |
| t-vxworks | Loading commit data... | |
| vxworks.h | Loading commit data... |