passes.def 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500
  1. /* Description of pass structure
  2. Copyright (C) 1987-2019 Free Software Foundation, Inc.
  3. This file is part of GCC.
  4. GCC is free software; you can redistribute it and/or modify it under
  5. the terms of the GNU General Public License as published by the Free
  6. Software Foundation; either version 3, or (at your option) any later
  7. version.
  8. GCC is distributed in the hope that it will be useful, but WITHOUT ANY
  9. WARRANTY; without even the implied warranty of MERCHANTABILITY or
  10. FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  11. for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with GCC; see the file COPYING3. If not see
  14. <http://www.gnu.org/licenses/>. */
  15. /*
  16. Macros that should be defined when using this file:
  17. INSERT_PASSES_AFTER (PASS)
  18. PUSH_INSERT_PASSES_WITHIN (PASS)
  19. POP_INSERT_PASSES ()
  20. NEXT_PASS (PASS)
  21. TERMINATE_PASS_LIST (PASS)
  22. */
  23. /* All passes needed to lower the function into shape optimizers can
  24. operate on. These passes are always run first on the function, but
  25. backend might produce already lowered functions that are not processed
  26. by these passes. */
  27. INSERT_PASSES_AFTER (all_lowering_passes)
  28. NEXT_PASS (pass_warn_unused_result);
  29. NEXT_PASS (pass_diagnose_omp_blocks);
  30. NEXT_PASS (pass_diagnose_tm_blocks);
  31. NEXT_PASS (pass_lower_omp);
  32. NEXT_PASS (pass_lower_cf);
  33. NEXT_PASS (pass_lower_tm);
  34. NEXT_PASS (pass_refactor_eh);
  35. NEXT_PASS (pass_lower_eh);
  36. NEXT_PASS (pass_build_cfg);
  37. NEXT_PASS (pass_warn_function_return);
  38. NEXT_PASS (pass_expand_omp);
  39. NEXT_PASS (pass_sprintf_length, false);
  40. NEXT_PASS (pass_walloca, /*strict_mode_p=*/true);
  41. NEXT_PASS (pass_build_cgraph_edges);
  42. TERMINATE_PASS_LIST (all_lowering_passes)
  43. /* Interprocedural optimization passes. */
  44. INSERT_PASSES_AFTER (all_small_ipa_passes)
  45. NEXT_PASS (pass_ipa_free_lang_data);
  46. NEXT_PASS (pass_ipa_function_and_variable_visibility);
  47. NEXT_PASS (pass_build_ssa_passes);
  48. PUSH_INSERT_PASSES_WITHIN (pass_build_ssa_passes)
  49. NEXT_PASS (pass_fixup_cfg);
  50. NEXT_PASS (pass_build_ssa);
  51. NEXT_PASS (pass_warn_nonnull_compare);
  52. NEXT_PASS (pass_early_warn_uninitialized);
  53. NEXT_PASS (pass_ubsan);
  54. NEXT_PASS (pass_nothrow);
  55. NEXT_PASS (pass_rebuild_cgraph_edges);
  56. POP_INSERT_PASSES ()
  57. NEXT_PASS (pass_local_optimization_passes);
  58. PUSH_INSERT_PASSES_WITHIN (pass_local_optimization_passes)
  59. NEXT_PASS (pass_fixup_cfg);
  60. NEXT_PASS (pass_rebuild_cgraph_edges);
  61. NEXT_PASS (pass_local_fn_summary);
  62. NEXT_PASS (pass_early_inline);
  63. NEXT_PASS (pass_all_early_optimizations);
  64. PUSH_INSERT_PASSES_WITHIN (pass_all_early_optimizations)
  65. NEXT_PASS (pass_remove_cgraph_callee_edges);
  66. NEXT_PASS (pass_object_sizes, true /* insert_min_max_p */);
  67. /* Don't record nonzero bits before IPA to avoid
  68. using too much memory. */
  69. NEXT_PASS (pass_ccp, false /* nonzero_p */);
  70. /* After CCP we rewrite no longer addressed locals into SSA
  71. form if possible. */
  72. NEXT_PASS (pass_forwprop);
  73. NEXT_PASS (pass_early_thread_jumps);
  74. NEXT_PASS (pass_sra_early);
  75. /* pass_build_ealias is a dummy pass that ensures that we
  76. execute TODO_rebuild_alias at this point. */
  77. NEXT_PASS (pass_build_ealias);
  78. NEXT_PASS (pass_fre);
  79. NEXT_PASS (pass_early_vrp);
  80. NEXT_PASS (pass_merge_phi);
  81. NEXT_PASS (pass_dse);
  82. NEXT_PASS (pass_cd_dce);
  83. NEXT_PASS (pass_phiopt, true /* early_p */);
  84. NEXT_PASS (pass_early_ipa_sra);
  85. NEXT_PASS (pass_tail_recursion);
  86. NEXT_PASS (pass_convert_switch);
  87. NEXT_PASS (pass_cleanup_eh);
  88. NEXT_PASS (pass_profile);
  89. NEXT_PASS (pass_local_pure_const);
  90. /* Split functions creates parts that are not run through
  91. early optimizations again. It is thus good idea to do this
  92. late. */
  93. NEXT_PASS (pass_split_functions);
  94. NEXT_PASS (pass_strip_predict_hints, true /* early_p */);
  95. POP_INSERT_PASSES ()
  96. NEXT_PASS (pass_release_ssa_names);
  97. NEXT_PASS (pass_rebuild_cgraph_edges);
  98. NEXT_PASS (pass_local_fn_summary);
  99. POP_INSERT_PASSES ()
  100. NEXT_PASS (pass_ipa_remove_symbols);
  101. NEXT_PASS (pass_ipa_oacc);
  102. PUSH_INSERT_PASSES_WITHIN (pass_ipa_oacc)
  103. NEXT_PASS (pass_ipa_pta);
  104. /* Pass group that runs when the function is an offloaded function
  105. containing oacc kernels loops. */
  106. NEXT_PASS (pass_ipa_oacc_kernels);
  107. PUSH_INSERT_PASSES_WITHIN (pass_ipa_oacc_kernels)
  108. NEXT_PASS (pass_oacc_kernels);
  109. PUSH_INSERT_PASSES_WITHIN (pass_oacc_kernels)
  110. NEXT_PASS (pass_ch);
  111. NEXT_PASS (pass_fre);
  112. /* We use pass_lim to rewrite in-memory iteration and reduction
  113. variable accesses in loops into local variables accesses. */
  114. NEXT_PASS (pass_lim);
  115. NEXT_PASS (pass_dominator, false /* may_peel_loop_headers_p */);
  116. NEXT_PASS (pass_dce);
  117. NEXT_PASS (pass_parallelize_loops, true /* oacc_kernels_p */);
  118. NEXT_PASS (pass_expand_omp_ssa);
  119. NEXT_PASS (pass_rebuild_cgraph_edges);
  120. POP_INSERT_PASSES ()
  121. POP_INSERT_PASSES ()
  122. POP_INSERT_PASSES ()
  123. NEXT_PASS (pass_target_clone);
  124. NEXT_PASS (pass_ipa_auto_profile);
  125. NEXT_PASS (pass_ipa_tree_profile);
  126. PUSH_INSERT_PASSES_WITHIN (pass_ipa_tree_profile)
  127. NEXT_PASS (pass_feedback_split_functions);
  128. POP_INSERT_PASSES ()
  129. NEXT_PASS (pass_ipa_free_fn_summary, true /* small_p */);
  130. NEXT_PASS (pass_ipa_increase_alignment);
  131. NEXT_PASS (pass_ipa_tm);
  132. NEXT_PASS (pass_ipa_lower_emutls);
  133. TERMINATE_PASS_LIST (all_small_ipa_passes)
  134. INSERT_PASSES_AFTER (all_regular_ipa_passes)
  135. NEXT_PASS (pass_ipa_whole_program_visibility);
  136. NEXT_PASS (pass_ipa_profile);
  137. NEXT_PASS (pass_ipa_icf);
  138. NEXT_PASS (pass_ipa_devirt);
  139. NEXT_PASS (pass_ipa_cp);
  140. NEXT_PASS (pass_ipa_cdtor_merge);
  141. NEXT_PASS (pass_ipa_hsa);
  142. NEXT_PASS (pass_ipa_fn_summary);
  143. NEXT_PASS (pass_ipa_inline);
  144. NEXT_PASS (pass_ipa_pure_const);
  145. NEXT_PASS (pass_ipa_free_fn_summary, false /* small_p */);
  146. NEXT_PASS (pass_ipa_reference);
  147. /* This pass needs to be scheduled after any IP code duplication. */
  148. NEXT_PASS (pass_ipa_single_use);
  149. /* Comdat privatization come last, as direct references to comdat local
  150. symbols are not allowed outside of the comdat group. Privatizing early
  151. would result in missed optimizations due to this restriction. */
  152. NEXT_PASS (pass_ipa_comdats);
  153. TERMINATE_PASS_LIST (all_regular_ipa_passes)
  154. /* Simple IPA passes executed after the regular passes. In WHOPR mode the
  155. passes are executed after partitioning and thus see just parts of the
  156. compiled unit. */
  157. INSERT_PASSES_AFTER (all_late_ipa_passes)
  158. NEXT_PASS (pass_materialize_all_clones);
  159. NEXT_PASS (pass_ipa_pta);
  160. NEXT_PASS (pass_omp_simd_clone);
  161. TERMINATE_PASS_LIST (all_late_ipa_passes)
  162. /* These passes are run after IPA passes on every function that is being
  163. output to the assembler file. */
  164. INSERT_PASSES_AFTER (all_passes)
  165. NEXT_PASS (pass_fixup_cfg);
  166. NEXT_PASS (pass_lower_eh_dispatch);
  167. NEXT_PASS (pass_oacc_device_lower);
  168. NEXT_PASS (pass_omp_device_lower);
  169. NEXT_PASS (pass_omp_target_link);
  170. NEXT_PASS (pass_all_optimizations);
  171. PUSH_INSERT_PASSES_WITHIN (pass_all_optimizations)
  172. NEXT_PASS (pass_remove_cgraph_callee_edges);
  173. /* Initial scalar cleanups before alias computation.
  174. They ensure memory accesses are not indirect wherever possible. */
  175. NEXT_PASS (pass_strip_predict_hints, false /* early_p */);
  176. NEXT_PASS (pass_ccp, true /* nonzero_p */);
  177. NEXT_PASS (pass_post_ipa_warn);
  178. /* After CCP we rewrite no longer addressed locals into SSA
  179. form if possible. */
  180. NEXT_PASS (pass_complete_unrolli);
  181. NEXT_PASS (pass_backprop);
  182. NEXT_PASS (pass_phiprop);
  183. NEXT_PASS (pass_forwprop);
  184. NEXT_PASS (pass_object_sizes, false /* insert_min_max_p */);
  185. /* pass_build_alias is a dummy pass that ensures that we
  186. execute TODO_rebuild_alias at this point. */
  187. NEXT_PASS (pass_build_alias);
  188. NEXT_PASS (pass_return_slot);
  189. NEXT_PASS (pass_fre);
  190. NEXT_PASS (pass_merge_phi);
  191. NEXT_PASS (pass_thread_jumps);
  192. NEXT_PASS (pass_vrp, true /* warn_array_bounds_p */);
  193. NEXT_PASS (pass_dce);
  194. NEXT_PASS (pass_stdarg);
  195. NEXT_PASS (pass_call_cdce);
  196. NEXT_PASS (pass_cselim);
  197. NEXT_PASS (pass_copy_prop);
  198. NEXT_PASS (pass_tree_ifcombine);
  199. NEXT_PASS (pass_merge_phi);
  200. NEXT_PASS (pass_phiopt, false /* early_p */);
  201. NEXT_PASS (pass_tail_recursion);
  202. NEXT_PASS (pass_ch);
  203. NEXT_PASS (pass_lower_complex);
  204. NEXT_PASS (pass_sra);
  205. /* The dom pass will also resolve all __builtin_constant_p calls
  206. that are still there to 0. This has to be done after some
  207. propagations have already run, but before some more dead code
  208. is removed, and this place fits nicely. Remember this when
  209. trying to move or duplicate pass_dominator somewhere earlier. */
  210. NEXT_PASS (pass_thread_jumps);
  211. NEXT_PASS (pass_dominator, true /* may_peel_loop_headers_p */);
  212. /* Threading can leave many const/copy propagations in the IL.
  213. Clean them up. Failure to do so well can lead to false
  214. positives from warnings for erroneous code. */
  215. NEXT_PASS (pass_copy_prop);
  216. /* Identify paths that should never be executed in a conforming
  217. program and isolate those paths. */
  218. NEXT_PASS (pass_isolate_erroneous_paths);
  219. NEXT_PASS (pass_dse);
  220. NEXT_PASS (pass_reassoc, true /* insert_powi_p */);
  221. NEXT_PASS (pass_dce);
  222. NEXT_PASS (pass_forwprop);
  223. NEXT_PASS (pass_phiopt, false /* early_p */);
  224. NEXT_PASS (pass_ccp, true /* nonzero_p */);
  225. /* After CCP we rewrite no longer addressed locals into SSA
  226. form if possible. */
  227. NEXT_PASS (pass_cse_sincos);
  228. NEXT_PASS (pass_optimize_bswap);
  229. NEXT_PASS (pass_laddress);
  230. NEXT_PASS (pass_lim);
  231. NEXT_PASS (pass_walloca, false);
  232. NEXT_PASS (pass_pre);
  233. NEXT_PASS (pass_sink_code);
  234. NEXT_PASS (pass_sancov);
  235. NEXT_PASS (pass_asan);
  236. NEXT_PASS (pass_tsan);
  237. NEXT_PASS (pass_dce);
  238. /* Pass group that runs when 1) enabled, 2) there are loops
  239. in the function. Make sure to run pass_fix_loops before
  240. to discover/remove loops before running the gate function
  241. of pass_tree_loop. */
  242. NEXT_PASS (pass_fix_loops);
  243. NEXT_PASS (pass_tree_loop);
  244. PUSH_INSERT_PASSES_WITHIN (pass_tree_loop)
  245. NEXT_PASS (pass_tree_loop_init);
  246. NEXT_PASS (pass_tree_unswitch);
  247. NEXT_PASS (pass_scev_cprop);
  248. NEXT_PASS (pass_loop_split);
  249. NEXT_PASS (pass_loop_versioning);
  250. NEXT_PASS (pass_loop_jam);
  251. /* All unswitching, final value replacement and splitting can expose
  252. empty loops. Remove them now. */
  253. NEXT_PASS (pass_cd_dce);
  254. NEXT_PASS (pass_iv_canon);
  255. NEXT_PASS (pass_loop_distribution);
  256. NEXT_PASS (pass_linterchange);
  257. NEXT_PASS (pass_copy_prop);
  258. NEXT_PASS (pass_graphite);
  259. PUSH_INSERT_PASSES_WITHIN (pass_graphite)
  260. NEXT_PASS (pass_graphite_transforms);
  261. NEXT_PASS (pass_lim);
  262. NEXT_PASS (pass_copy_prop);
  263. NEXT_PASS (pass_dce);
  264. POP_INSERT_PASSES ()
  265. NEXT_PASS (pass_parallelize_loops, false /* oacc_kernels_p */);
  266. NEXT_PASS (pass_expand_omp_ssa);
  267. NEXT_PASS (pass_ch_vect);
  268. NEXT_PASS (pass_if_conversion);
  269. /* pass_vectorize must immediately follow pass_if_conversion.
  270. Please do not add any other passes in between. */
  271. NEXT_PASS (pass_vectorize);
  272. PUSH_INSERT_PASSES_WITHIN (pass_vectorize)
  273. NEXT_PASS (pass_dce);
  274. POP_INSERT_PASSES ()
  275. NEXT_PASS (pass_predcom);
  276. NEXT_PASS (pass_complete_unroll);
  277. NEXT_PASS (pass_slp_vectorize);
  278. NEXT_PASS (pass_loop_prefetch);
  279. /* Run IVOPTs after the last pass that uses data-reference analysis
  280. as that doesn't handle TARGET_MEM_REFs. */
  281. NEXT_PASS (pass_iv_optimize);
  282. NEXT_PASS (pass_lim);
  283. NEXT_PASS (pass_tree_loop_done);
  284. POP_INSERT_PASSES ()
  285. /* Pass group that runs when pass_tree_loop is disabled or there
  286. are no loops in the function. */
  287. NEXT_PASS (pass_tree_no_loop);
  288. PUSH_INSERT_PASSES_WITHIN (pass_tree_no_loop)
  289. NEXT_PASS (pass_slp_vectorize);
  290. POP_INSERT_PASSES ()
  291. NEXT_PASS (pass_simduid_cleanup);
  292. NEXT_PASS (pass_lower_vector_ssa);
  293. NEXT_PASS (pass_lower_switch);
  294. NEXT_PASS (pass_cse_reciprocals);
  295. NEXT_PASS (pass_sprintf_length, true);
  296. NEXT_PASS (pass_reassoc, false /* insert_powi_p */);
  297. NEXT_PASS (pass_strength_reduction);
  298. NEXT_PASS (pass_split_paths);
  299. NEXT_PASS (pass_tracer);
  300. NEXT_PASS (pass_thread_jumps);
  301. NEXT_PASS (pass_dominator, false /* may_peel_loop_headers_p */);
  302. NEXT_PASS (pass_strlen);
  303. NEXT_PASS (pass_thread_jumps);
  304. NEXT_PASS (pass_vrp, false /* warn_array_bounds_p */);
  305. NEXT_PASS (pass_warn_restrict);
  306. /* Threading can leave many const/copy propagations in the IL.
  307. Clean them up. */
  308. NEXT_PASS (pass_copy_prop);
  309. NEXT_PASS (pass_dse);
  310. NEXT_PASS (pass_cd_dce);
  311. NEXT_PASS (pass_forwprop);
  312. NEXT_PASS (pass_phiopt, false /* early_p */);
  313. NEXT_PASS (pass_fold_builtins);
  314. NEXT_PASS (pass_optimize_widening_mul);
  315. NEXT_PASS (pass_store_merging);
  316. NEXT_PASS (pass_tail_calls);
  317. /* If DCE is not run before checking for uninitialized uses,
  318. we may get false warnings (e.g., testsuite/gcc.dg/uninit-5.c).
  319. However, this also causes us to misdiagnose cases that should be
  320. real warnings (e.g., testsuite/gcc.dg/pr18501.c). */
  321. NEXT_PASS (pass_dce);
  322. /* Split critical edges before late uninit warning to reduce the
  323. number of false positives from it. */
  324. NEXT_PASS (pass_split_crit_edges);
  325. NEXT_PASS (pass_late_warn_uninitialized);
  326. NEXT_PASS (pass_uncprop);
  327. NEXT_PASS (pass_local_pure_const);
  328. POP_INSERT_PASSES ()
  329. NEXT_PASS (pass_all_optimizations_g);
  330. PUSH_INSERT_PASSES_WITHIN (pass_all_optimizations_g)
  331. NEXT_PASS (pass_remove_cgraph_callee_edges);
  332. NEXT_PASS (pass_strip_predict_hints, false /* early_p */);
  333. /* Lower remaining pieces of GIMPLE. */
  334. NEXT_PASS (pass_lower_complex);
  335. NEXT_PASS (pass_lower_vector_ssa);
  336. NEXT_PASS (pass_lower_switch);
  337. /* Perform simple scalar cleanup which is constant/copy propagation. */
  338. NEXT_PASS (pass_ccp, true /* nonzero_p */);
  339. NEXT_PASS (pass_post_ipa_warn);
  340. NEXT_PASS (pass_object_sizes);
  341. /* Fold remaining builtins. */
  342. NEXT_PASS (pass_fold_builtins);
  343. NEXT_PASS (pass_sprintf_length, true);
  344. /* Copy propagation also copy-propagates constants, this is necessary
  345. to forward object-size and builtin folding results properly. */
  346. NEXT_PASS (pass_copy_prop);
  347. NEXT_PASS (pass_dce);
  348. NEXT_PASS (pass_sancov);
  349. NEXT_PASS (pass_asan);
  350. NEXT_PASS (pass_tsan);
  351. /* ??? We do want some kind of loop invariant motion, but we possibly
  352. need to adjust LIM to be more friendly towards preserving accurate
  353. debug information here. */
  354. /* Split critical edges before late uninit warning to reduce the
  355. number of false positives from it. */
  356. NEXT_PASS (pass_split_crit_edges);
  357. NEXT_PASS (pass_late_warn_uninitialized);
  358. NEXT_PASS (pass_uncprop);
  359. NEXT_PASS (pass_local_pure_const);
  360. POP_INSERT_PASSES ()
  361. NEXT_PASS (pass_tm_init);
  362. PUSH_INSERT_PASSES_WITHIN (pass_tm_init)
  363. NEXT_PASS (pass_tm_mark);
  364. NEXT_PASS (pass_tm_memopt);
  365. NEXT_PASS (pass_tm_edges);
  366. POP_INSERT_PASSES ()
  367. NEXT_PASS (pass_simduid_cleanup);
  368. NEXT_PASS (pass_vtable_verify);
  369. NEXT_PASS (pass_lower_vaarg);
  370. NEXT_PASS (pass_lower_vector);
  371. NEXT_PASS (pass_lower_complex_O0);
  372. NEXT_PASS (pass_sancov_O0);
  373. NEXT_PASS (pass_lower_switch_O0);
  374. NEXT_PASS (pass_asan_O0);
  375. NEXT_PASS (pass_tsan_O0);
  376. NEXT_PASS (pass_sanopt);
  377. NEXT_PASS (pass_cleanup_eh);
  378. NEXT_PASS (pass_lower_resx);
  379. NEXT_PASS (pass_nrv);
  380. NEXT_PASS (pass_cleanup_cfg_post_optimizing);
  381. NEXT_PASS (pass_warn_function_noreturn);
  382. NEXT_PASS (pass_gen_hsail);
  383. NEXT_PASS (pass_expand);
  384. NEXT_PASS (pass_rest_of_compilation);
  385. PUSH_INSERT_PASSES_WITHIN (pass_rest_of_compilation)
  386. NEXT_PASS (pass_instantiate_virtual_regs);
  387. NEXT_PASS (pass_into_cfg_layout_mode);
  388. NEXT_PASS (pass_jump);
  389. NEXT_PASS (pass_lower_subreg);
  390. NEXT_PASS (pass_df_initialize_opt);
  391. NEXT_PASS (pass_cse);
  392. NEXT_PASS (pass_rtl_fwprop);
  393. NEXT_PASS (pass_rtl_cprop);
  394. NEXT_PASS (pass_rtl_pre);
  395. NEXT_PASS (pass_rtl_hoist);
  396. NEXT_PASS (pass_rtl_cprop);
  397. NEXT_PASS (pass_rtl_store_motion);
  398. NEXT_PASS (pass_cse_after_global_opts);
  399. NEXT_PASS (pass_rtl_ifcvt);
  400. NEXT_PASS (pass_reginfo_init);
  401. /* Perform loop optimizations. It might be better to do them a bit
  402. sooner, but we want the profile feedback to work more
  403. efficiently. */
  404. NEXT_PASS (pass_loop2);
  405. PUSH_INSERT_PASSES_WITHIN (pass_loop2)
  406. NEXT_PASS (pass_rtl_loop_init);
  407. NEXT_PASS (pass_rtl_move_loop_invariants);
  408. NEXT_PASS (pass_rtl_unroll_loops);
  409. NEXT_PASS (pass_rtl_doloop);
  410. NEXT_PASS (pass_rtl_loop_done);
  411. POP_INSERT_PASSES ()
  412. NEXT_PASS (pass_web);
  413. NEXT_PASS (pass_rtl_cprop);
  414. NEXT_PASS (pass_cse2);
  415. NEXT_PASS (pass_rtl_dse1);
  416. NEXT_PASS (pass_rtl_fwprop_addr);
  417. NEXT_PASS (pass_inc_dec);
  418. NEXT_PASS (pass_initialize_regs);
  419. NEXT_PASS (pass_ud_rtl_dce);
  420. NEXT_PASS (pass_combine);
  421. NEXT_PASS (pass_if_after_combine);
  422. NEXT_PASS (pass_jump_after_combine);
  423. NEXT_PASS (pass_partition_blocks);
  424. NEXT_PASS (pass_outof_cfg_layout_mode);
  425. NEXT_PASS (pass_split_all_insns);
  426. NEXT_PASS (pass_lower_subreg2);
  427. NEXT_PASS (pass_df_initialize_no_opt);
  428. NEXT_PASS (pass_stack_ptr_mod);
  429. NEXT_PASS (pass_mode_switching);
  430. NEXT_PASS (pass_match_asm_constraints);
  431. NEXT_PASS (pass_sms);
  432. NEXT_PASS (pass_live_range_shrinkage);
  433. NEXT_PASS (pass_sched);
  434. NEXT_PASS (pass_early_remat);
  435. NEXT_PASS (pass_ira);
  436. NEXT_PASS (pass_reload);
  437. NEXT_PASS (pass_postreload);
  438. PUSH_INSERT_PASSES_WITHIN (pass_postreload)
  439. NEXT_PASS (pass_postreload_cse);
  440. NEXT_PASS (pass_gcse2);
  441. NEXT_PASS (pass_split_after_reload);
  442. NEXT_PASS (pass_ree);
  443. NEXT_PASS (pass_compare_elim_after_reload);
  444. NEXT_PASS (pass_branch_target_load_optimize1);
  445. NEXT_PASS (pass_thread_prologue_and_epilogue);
  446. NEXT_PASS (pass_rtl_dse2);
  447. NEXT_PASS (pass_stack_adjustments);
  448. NEXT_PASS (pass_jump2);
  449. NEXT_PASS (pass_duplicate_computed_gotos);
  450. NEXT_PASS (pass_sched_fusion);
  451. NEXT_PASS (pass_peephole2);
  452. NEXT_PASS (pass_if_after_reload);
  453. NEXT_PASS (pass_regrename);
  454. NEXT_PASS (pass_cprop_hardreg);
  455. NEXT_PASS (pass_fast_rtl_dce);
  456. NEXT_PASS (pass_reorder_blocks);
  457. NEXT_PASS (pass_branch_target_load_optimize2);
  458. NEXT_PASS (pass_leaf_regs);
  459. NEXT_PASS (pass_split_before_sched2);
  460. NEXT_PASS (pass_sched2);
  461. NEXT_PASS (pass_stack_regs);
  462. PUSH_INSERT_PASSES_WITHIN (pass_stack_regs)
  463. NEXT_PASS (pass_split_before_regstack);
  464. NEXT_PASS (pass_stack_regs_run);
  465. POP_INSERT_PASSES ()
  466. POP_INSERT_PASSES ()
  467. NEXT_PASS (pass_late_compilation);
  468. PUSH_INSERT_PASSES_WITHIN (pass_late_compilation)
  469. NEXT_PASS (pass_compute_alignments);
  470. NEXT_PASS (pass_variable_tracking);
  471. NEXT_PASS (pass_free_cfg);
  472. NEXT_PASS (pass_machine_reorg);
  473. NEXT_PASS (pass_cleanup_barriers);
  474. NEXT_PASS (pass_delay_slots);
  475. NEXT_PASS (pass_split_for_shorten_branches);
  476. NEXT_PASS (pass_convert_to_eh_region_ranges);
  477. NEXT_PASS (pass_shorten_branches);
  478. NEXT_PASS (pass_set_nothrow_function_flags);
  479. NEXT_PASS (pass_dwarf2_frame);
  480. NEXT_PASS (pass_final);
  481. POP_INSERT_PASSES ()
  482. NEXT_PASS (pass_df_finish);
  483. POP_INSERT_PASSES ()
  484. NEXT_PASS (pass_clean_state);
  485. TERMINATE_PASS_LIST (all_passes)