You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

510 lines
21KB

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