tree: 78547f75586b785ba5a889c31e1b36ae0de30895 [path history] [tgz]
  1. building/
  2. const_prop/
  3. copy-prop/
  4. coverage/
  5. dataflow-const-prop/
  6. dead-store-elimination/
  7. dest-prop/
  8. inline/
  9. instsimplify/
  10. issues/
  11. nll/
  12. pre-codegen/
  13. sroa/
  14. unnamed-fields/
  15. address_of.address_of_reborrow.SimplifyCfg-initial.after.mir
  16. address_of.borrow_and_cast.SimplifyCfg-initial.after.mir
  17. address_of.rs
  18. array_index_is_temporary.main.SimplifyCfg-pre-optimizations.after.panic-abort.mir
  19. array_index_is_temporary.main.SimplifyCfg-pre-optimizations.after.panic-unwind.mir
  20. array_index_is_temporary.rs
  21. asm_unwind_panic_abort.main.AbortUnwindingCalls.after.mir
  22. asm_unwind_panic_abort.rs
  23. async_closure_shims.main-{closure#0}-{closure#0}-{closure#0}.coroutine_by_move.0.panic-abort.mir
  24. async_closure_shims.main-{closure#0}-{closure#0}-{closure#0}.coroutine_by_move.0.panic-unwind.mir
  25. async_closure_shims.main-{closure#0}-{closure#0}.coroutine_closure_by_move.0.panic-abort.mir
  26. async_closure_shims.main-{closure#0}-{closure#0}.coroutine_closure_by_move.0.panic-unwind.mir
  27. async_closure_shims.main-{closure#0}-{closure#1}-{closure#0}.coroutine_by_move.0.panic-abort.mir
  28. async_closure_shims.main-{closure#0}-{closure#1}-{closure#0}.coroutine_by_move.0.panic-unwind.mir
  29. async_closure_shims.main-{closure#0}-{closure#1}.coroutine_closure_by_move.0.panic-abort.mir
  30. async_closure_shims.main-{closure#0}-{closure#1}.coroutine_closure_by_move.0.panic-unwind.mir
  31. async_closure_shims.main-{closure#0}-{closure#1}.coroutine_closure_by_ref.0.panic-abort.mir
  32. async_closure_shims.main-{closure#0}-{closure#1}.coroutine_closure_by_ref.0.panic-unwind.mir
  33. async_closure_shims.rs
  34. basic_assignment.main.ElaborateDrops.diff
  35. basic_assignment.main.SimplifyCfg-initial.after.mir
  36. basic_assignment.rs
  37. box_expr.main.ElaborateDrops.diff
  38. box_expr.rs
  39. byte_slice.main.SimplifyCfg-pre-optimizations.after.mir
  40. byte_slice.rs
  41. const_allocation.main.GVN.after.32bit.mir
  42. const_allocation.main.GVN.after.64bit.mir
  43. const_allocation.rs
  44. const_allocation2.main.GVN.after.32bit.mir
  45. const_allocation2.main.GVN.after.64bit.mir
  46. const_allocation2.rs
  47. const_allocation3.main.GVN.after.32bit.mir
  48. const_allocation3.main.GVN.after.64bit.mir
  49. const_allocation3.rs
  50. const_debuginfo.main.SingleUseConsts.diff
  51. const_debuginfo.rs
  52. const_goto_const_eval_fail.f.JumpThreading.diff
  53. const_goto_const_eval_fail.rs
  54. const_promotion_extern_static.BAR-promoted[0].SimplifyCfg-pre-optimizations.after.mir
  55. const_promotion_extern_static.BAR.PromoteTemps.diff
  56. const_promotion_extern_static.BOP.built.after.mir
  57. const_promotion_extern_static.FOO-promoted[0].SimplifyCfg-pre-optimizations.after.mir
  58. const_promotion_extern_static.FOO.PromoteTemps.diff
  59. const_promotion_extern_static.rs
  60. coroutine_drop_cleanup.main-{closure#0}.coroutine_drop.0.panic-abort.mir
  61. coroutine_drop_cleanup.main-{closure#0}.coroutine_drop.0.panic-unwind.mir
  62. coroutine_drop_cleanup.rs
  63. coroutine_storage_dead_unwind.main-{closure#0}.StateTransform.before.panic-abort.mir
  64. coroutine_storage_dead_unwind.main-{closure#0}.StateTransform.before.panic-unwind.mir
  65. coroutine_storage_dead_unwind.rs
  66. coroutine_tiny.main-{closure#0}.coroutine_resume.0.mir
  67. coroutine_tiny.rs
  68. deduplicate_blocks.is_line_doc_comment_2.DeduplicateBlocks.panic-abort.diff
  69. deduplicate_blocks.is_line_doc_comment_2.DeduplicateBlocks.panic-unwind.diff
  70. deduplicate_blocks.rs
  71. derefer_complex_case.main.Derefer.panic-abort.diff
  72. derefer_complex_case.main.Derefer.panic-unwind.diff
  73. derefer_complex_case.rs
  74. derefer_inline_test.main.Derefer.panic-abort.diff
  75. derefer_inline_test.main.Derefer.panic-unwind.diff
  76. derefer_inline_test.rs
  77. derefer_terminator_test.main.Derefer.panic-abort.diff
  78. derefer_terminator_test.main.Derefer.panic-unwind.diff
  79. derefer_terminator_test.rs
  80. derefer_test.main.Derefer.diff
  81. derefer_test.rs
  82. derefer_test_multiple.main.Derefer.diff
  83. derefer_test_multiple.rs
  84. dont_inline_type_id.call.Inline.diff
  85. dont_inline_type_id.rs
  86. early_otherwise_branch.opt1.EarlyOtherwiseBranch.diff
  87. early_otherwise_branch.opt2.EarlyOtherwiseBranch.diff
  88. early_otherwise_branch.opt3.EarlyOtherwiseBranch.diff
  89. early_otherwise_branch.opt4.EarlyOtherwiseBranch.diff
  90. early_otherwise_branch.rs
  91. early_otherwise_branch_3_element_tuple.opt1.EarlyOtherwiseBranch.diff
  92. early_otherwise_branch_3_element_tuple.opt2.EarlyOtherwiseBranch.diff
  93. early_otherwise_branch_3_element_tuple.rs
  94. early_otherwise_branch_68867.rs
  95. early_otherwise_branch_68867.try_sum.EarlyOtherwiseBranch.diff
  96. early_otherwise_branch_noopt.noopt1.EarlyOtherwiseBranch.diff
  97. early_otherwise_branch_noopt.rs
  98. early_otherwise_branch_soundness.no_deref_ptr.EarlyOtherwiseBranch.diff
  99. early_otherwise_branch_soundness.no_downcast.EarlyOtherwiseBranch.diff
  100. early_otherwise_branch_soundness.rs
  101. enum_opt.cand.EnumSizeOpt.32bit.diff
  102. enum_opt.cand.EnumSizeOpt.64bit.diff
  103. enum_opt.invalid.EnumSizeOpt.32bit.diff
  104. enum_opt.invalid.EnumSizeOpt.64bit.diff
  105. enum_opt.rs
  106. enum_opt.trunc.EnumSizeOpt.32bit.diff
  107. enum_opt.trunc.EnumSizeOpt.64bit.diff
  108. enum_opt.unin.EnumSizeOpt.32bit.diff
  109. enum_opt.unin.EnumSizeOpt.64bit.diff
  110. fn_ptr_shim.core.ops-function-Fn-call.AddMovesForPackedDrops.before.mir
  111. fn_ptr_shim.rs
  112. funky_arms.float_to_exponential_common.GVN.panic-abort.diff
  113. funky_arms.float_to_exponential_common.GVN.panic-unwind.diff
  114. funky_arms.rs
  115. graphviz.main.built.after.dot
  116. graphviz.rs
  117. gvn.arithmetic.GVN.panic-abort.diff
  118. gvn.arithmetic.GVN.panic-unwind.diff
  119. gvn.arithmetic_checked.GVN.panic-abort.diff
  120. gvn.arithmetic_checked.GVN.panic-unwind.diff
  121. gvn.arithmetic_float.GVN.panic-abort.diff
  122. gvn.arithmetic_float.GVN.panic-unwind.diff
  123. gvn.array_len.GVN.panic-abort.diff
  124. gvn.array_len.GVN.panic-unwind.diff
  125. gvn.borrowed.GVN.panic-abort.diff
  126. gvn.borrowed.GVN.panic-unwind.diff
  127. gvn.cast.GVN.panic-abort.diff
  128. gvn.cast.GVN.panic-unwind.diff
  129. gvn.cast_pointer_eq.GVN.panic-abort.diff
  130. gvn.cast_pointer_eq.GVN.panic-unwind.diff
  131. gvn.cast_pointer_then_transmute.GVN.panic-abort.diff
  132. gvn.cast_pointer_then_transmute.GVN.panic-unwind.diff
  133. gvn.casts_before_aggregate_raw_ptr.GVN.panic-abort.diff
  134. gvn.casts_before_aggregate_raw_ptr.GVN.panic-unwind.diff
  135. gvn.comparison.GVN.panic-abort.diff
  136. gvn.comparison.GVN.panic-unwind.diff
  137. gvn.constant_index_overflow.GVN.panic-abort.diff
  138. gvn.constant_index_overflow.GVN.panic-unwind.diff
  139. gvn.dereferences.GVN.panic-abort.diff
  140. gvn.dereferences.GVN.panic-unwind.diff
  141. gvn.duplicate_slice.GVN.panic-abort.diff
  142. gvn.duplicate_slice.GVN.panic-unwind.diff
  143. gvn.fn_pointers.GVN.panic-abort.diff
  144. gvn.fn_pointers.GVN.panic-unwind.diff
  145. gvn.generic_cast_metadata.GVN.panic-abort.diff
  146. gvn.generic_cast_metadata.GVN.panic-unwind.diff
  147. gvn.indirect_static.GVN.panic-abort.diff
  148. gvn.indirect_static.GVN.panic-unwind.diff
  149. gvn.manual_slice_mut_len.GVN.panic-abort.diff
  150. gvn.manual_slice_mut_len.GVN.panic-unwind.diff
  151. gvn.meta_of_ref_to_slice.GVN.panic-abort.diff
  152. gvn.meta_of_ref_to_slice.GVN.panic-unwind.diff
  153. gvn.multiple_branches.GVN.panic-abort.diff
  154. gvn.multiple_branches.GVN.panic-unwind.diff
  155. gvn.non_freeze.GVN.panic-abort.diff
  156. gvn.non_freeze.GVN.panic-unwind.diff
  157. gvn.references.GVN.panic-abort.diff
  158. gvn.references.GVN.panic-unwind.diff
  159. gvn.remove_casts_must_change_both_sides.GVN.panic-abort.diff
  160. gvn.remove_casts_must_change_both_sides.GVN.panic-unwind.diff
  161. gvn.repeat.GVN.panic-abort.diff
  162. gvn.repeat.GVN.panic-unwind.diff
  163. gvn.repeated_index.GVN.panic-abort.diff
  164. gvn.repeated_index.GVN.panic-unwind.diff
  165. gvn.rs
  166. gvn.slice_const_length.GVN.panic-abort.diff
  167. gvn.slice_const_length.GVN.panic-unwind.diff
  168. gvn.slice_from_raw_parts_as_ptr.GVN.panic-abort.diff
  169. gvn.slice_from_raw_parts_as_ptr.GVN.panic-unwind.diff
  170. gvn.slices.GVN.panic-abort.diff
  171. gvn.slices.GVN.panic-unwind.diff
  172. gvn.subexpression_elimination.GVN.panic-abort.diff
  173. gvn.subexpression_elimination.GVN.panic-unwind.diff
  174. gvn.unary.GVN.panic-abort.diff
  175. gvn.unary.GVN.panic-unwind.diff
  176. gvn.wide_ptr_integer.GVN.panic-abort.diff
  177. gvn.wide_ptr_integer.GVN.panic-unwind.diff
  178. gvn.wide_ptr_provenance.GVN.panic-abort.diff
  179. gvn.wide_ptr_provenance.GVN.panic-unwind.diff
  180. gvn.wide_ptr_same_provenance.GVN.panic-abort.diff
  181. gvn.wide_ptr_same_provenance.GVN.panic-unwind.diff
  182. gvn.wrap_unwrap.GVN.panic-abort.diff
  183. gvn.wrap_unwrap.GVN.panic-unwind.diff
  184. gvn_copy_moves.fn0.GVN.diff
  185. gvn_copy_moves.rs
  186. gvn_ptr_eq_with_constant.main.GVN.diff
  187. gvn_ptr_eq_with_constant.rs
  188. gvn_uninhabited.f.GVN.panic-abort.diff
  189. gvn_uninhabited.f.GVN.panic-unwind.diff
  190. gvn_uninhabited.rs
  191. if_condition_int.dont_opt_bool.SimplifyComparisonIntegral.diff
  192. if_condition_int.dont_opt_floats.SimplifyComparisonIntegral.diff
  193. if_condition_int.dont_remove_comparison.SimplifyComparisonIntegral.diff
  194. if_condition_int.opt_char.SimplifyComparisonIntegral.diff
  195. if_condition_int.opt_i8.SimplifyComparisonIntegral.diff
  196. if_condition_int.opt_multiple_ifs.SimplifyComparisonIntegral.diff
  197. if_condition_int.opt_negative.SimplifyComparisonIntegral.diff
  198. if_condition_int.opt_u32.SimplifyComparisonIntegral.diff
  199. if_condition_int.rs
  200. inline_coroutine_body.rs
  201. inline_coroutine_body.run2-{closure#0}.Inline.panic-abort.diff
  202. inline_coroutine_body.run2-{closure#0}.Inline.panic-unwind.diff
  203. inline_generically_if_sized.call.Inline.diff
  204. inline_generically_if_sized.rs
  205. issue_101973.inner.GVN.panic-abort.diff
  206. issue_101973.inner.GVN.panic-unwind.diff
  207. issue_101973.rs
  208. issue_104451_unwindable_intrinsics.main.AbortUnwindingCalls.after.panic-abort.mir
  209. issue_104451_unwindable_intrinsics.main.AbortUnwindingCalls.after.panic-unwind.mir
  210. issue_104451_unwindable_intrinsics.rs
  211. issue_120925_unsafefncast.rs
  212. issue_38669.main.SimplifyCfg-initial.after.mir
  213. issue_38669.rs
  214. issue_41110.main.ElaborateDrops.panic-abort.diff
  215. issue_41110.main.ElaborateDrops.panic-unwind.diff
  216. issue_41110.rs
  217. issue_41110.test.ElaborateDrops.panic-abort.diff
  218. issue_41110.test.ElaborateDrops.panic-unwind.diff
  219. issue_41697.rs
  220. issue_41697.{impl#0}-{constant#0}.SimplifyCfg-promote-consts.after.mir
  221. issue_41888.main.ElaborateDrops.panic-abort.diff
  222. issue_41888.main.ElaborateDrops.panic-unwind.diff
  223. issue_41888.rs
  224. issue_62289.rs
  225. issue_62289.test.ElaborateDrops.before.panic-abort.mir
  226. issue_62289.test.ElaborateDrops.before.panic-unwind.mir
  227. issue_72181.bar.built.after.mir
  228. issue_72181.foo.built.after.mir
  229. issue_72181.main.built.after.mir
  230. issue_72181.rs
  231. issue_72181_1.f.built.after.mir
  232. issue_72181_1.main.built.after.mir
  233. issue_72181_1.rs
  234. issue_76432.rs
  235. issue_76432.test.SimplifyComparisonIntegral.panic-abort.diff
  236. issue_76432.test.SimplifyComparisonIntegral.panic-unwind.diff
  237. issue_78192.f.InstSimplify.diff
  238. issue_78192.rs
  239. issue_91633.bar.built.after.mir
  240. issue_91633.foo.built.after.mir
  241. issue_91633.fun.built.after.mir
  242. issue_91633.hey.built.after.mir
  243. issue_91633.rs
  244. issue_99325.main.built.after.32bit.mir
  245. issue_99325.main.built.after.64bit.mir
  246. issue_99325.rs
  247. jump_threading.aggregate.JumpThreading.panic-abort.diff
  248. jump_threading.aggregate.JumpThreading.panic-unwind.diff
  249. jump_threading.aggregate_copy.JumpThreading.panic-abort.diff
  250. jump_threading.aggregate_copy.JumpThreading.panic-unwind.diff
  251. jump_threading.assume.JumpThreading.panic-abort.diff
  252. jump_threading.assume.JumpThreading.panic-unwind.diff
  253. jump_threading.custom_discr.JumpThreading.panic-abort.diff
  254. jump_threading.custom_discr.JumpThreading.panic-unwind.diff
  255. jump_threading.dfa.JumpThreading.panic-abort.diff
  256. jump_threading.dfa.JumpThreading.panic-unwind.diff
  257. jump_threading.disappearing_bb.JumpThreading.panic-abort.diff
  258. jump_threading.disappearing_bb.JumpThreading.panic-unwind.diff
  259. jump_threading.duplicate_chain.JumpThreading.panic-abort.diff
  260. jump_threading.duplicate_chain.JumpThreading.panic-unwind.diff
  261. jump_threading.floats.JumpThreading.panic-abort.diff
  262. jump_threading.floats.JumpThreading.panic-unwind.diff
  263. jump_threading.identity.JumpThreading.panic-abort.diff
  264. jump_threading.identity.JumpThreading.panic-unwind.diff
  265. jump_threading.multiple_match.JumpThreading.panic-abort.diff
  266. jump_threading.multiple_match.JumpThreading.panic-unwind.diff
  267. jump_threading.mutable_ref.JumpThreading.panic-abort.diff
  268. jump_threading.mutable_ref.JumpThreading.panic-unwind.diff
  269. jump_threading.mutate_discriminant.JumpThreading.panic-abort.diff
  270. jump_threading.mutate_discriminant.JumpThreading.panic-unwind.diff
  271. jump_threading.renumbered_bb.JumpThreading.panic-abort.diff
  272. jump_threading.renumbered_bb.JumpThreading.panic-unwind.diff
  273. jump_threading.rs
  274. jump_threading.too_complex.JumpThreading.panic-abort.diff
  275. jump_threading.too_complex.JumpThreading.panic-unwind.diff
  276. loop_test.main.SimplifyCfg-promote-consts.after.mir
  277. loop_test.rs
  278. lower_array_len.array_bound.GVN.panic-abort.diff
  279. lower_array_len.array_bound.GVN.panic-unwind.diff
  280. lower_array_len.array_bound_mut.GVN.panic-abort.diff
  281. lower_array_len.array_bound_mut.GVN.panic-unwind.diff
  282. lower_array_len.array_len.GVN.panic-abort.diff
  283. lower_array_len.array_len.GVN.panic-unwind.diff
  284. lower_array_len.array_len_by_value.GVN.panic-abort.diff
  285. lower_array_len.array_len_by_value.GVN.panic-unwind.diff
  286. lower_array_len.array_len_raw.GVN.panic-abort.diff
  287. lower_array_len.array_len_raw.GVN.panic-unwind.diff
  288. lower_array_len.array_len_reborrow.GVN.panic-abort.diff
  289. lower_array_len.array_len_reborrow.GVN.panic-unwind.diff
  290. lower_array_len.rs
  291. lower_intrinsics.align_of.LowerIntrinsics.panic-abort.diff
  292. lower_intrinsics.align_of.LowerIntrinsics.panic-unwind.diff
  293. lower_intrinsics.assume.LowerIntrinsics.panic-abort.diff
  294. lower_intrinsics.assume.LowerIntrinsics.panic-unwind.diff
  295. lower_intrinsics.discriminant.LowerIntrinsics.panic-abort.diff
  296. lower_intrinsics.discriminant.LowerIntrinsics.panic-unwind.diff
  297. lower_intrinsics.f_copy_nonoverlapping.LowerIntrinsics.panic-abort.diff
  298. lower_intrinsics.f_copy_nonoverlapping.LowerIntrinsics.panic-unwind.diff
  299. lower_intrinsics.forget.LowerIntrinsics.panic-abort.diff
  300. lower_intrinsics.forget.LowerIntrinsics.panic-unwind.diff
  301. lower_intrinsics.get_metadata.LowerIntrinsics.panic-abort.diff
  302. lower_intrinsics.get_metadata.LowerIntrinsics.panic-unwind.diff
  303. lower_intrinsics.make_pointers.LowerIntrinsics.panic-abort.diff
  304. lower_intrinsics.make_pointers.LowerIntrinsics.panic-unwind.diff
  305. lower_intrinsics.non_const.LowerIntrinsics.panic-abort.diff
  306. lower_intrinsics.non_const.LowerIntrinsics.panic-unwind.diff
  307. lower_intrinsics.ptr_offset.LowerIntrinsics.panic-abort.diff
  308. lower_intrinsics.ptr_offset.LowerIntrinsics.panic-unwind.diff
  309. lower_intrinsics.read_via_copy_primitive.LowerIntrinsics.panic-abort.diff
  310. lower_intrinsics.read_via_copy_primitive.LowerIntrinsics.panic-unwind.diff
  311. lower_intrinsics.read_via_copy_uninhabited.LowerIntrinsics.panic-abort.diff
  312. lower_intrinsics.read_via_copy_uninhabited.LowerIntrinsics.panic-unwind.diff
  313. lower_intrinsics.rs
  314. lower_intrinsics.size_of.LowerIntrinsics.panic-abort.diff
  315. lower_intrinsics.size_of.LowerIntrinsics.panic-unwind.diff
  316. lower_intrinsics.three_way_compare_char.LowerIntrinsics.panic-abort.diff
  317. lower_intrinsics.three_way_compare_char.LowerIntrinsics.panic-unwind.diff
  318. lower_intrinsics.three_way_compare_signed.LowerIntrinsics.panic-abort.diff
  319. lower_intrinsics.three_way_compare_signed.LowerIntrinsics.panic-unwind.diff
  320. lower_intrinsics.three_way_compare_unsigned.LowerIntrinsics.panic-abort.diff
  321. lower_intrinsics.three_way_compare_unsigned.LowerIntrinsics.panic-unwind.diff
  322. lower_intrinsics.transmute_inhabited.LowerIntrinsics.panic-abort.diff
  323. lower_intrinsics.transmute_inhabited.LowerIntrinsics.panic-unwind.diff
  324. lower_intrinsics.transmute_ref_dst.LowerIntrinsics.panic-abort.diff
  325. lower_intrinsics.transmute_ref_dst.LowerIntrinsics.panic-unwind.diff
  326. lower_intrinsics.transmute_to_box_uninhabited.LowerIntrinsics.panic-abort.diff
  327. lower_intrinsics.transmute_to_box_uninhabited.LowerIntrinsics.panic-unwind.diff
  328. lower_intrinsics.transmute_to_mut_uninhabited.LowerIntrinsics.panic-abort.diff
  329. lower_intrinsics.transmute_to_mut_uninhabited.LowerIntrinsics.panic-unwind.diff
  330. lower_intrinsics.transmute_to_ref_uninhabited.LowerIntrinsics.panic-abort.diff
  331. lower_intrinsics.transmute_to_ref_uninhabited.LowerIntrinsics.panic-unwind.diff
  332. lower_intrinsics.transmute_uninhabited.LowerIntrinsics.panic-abort.diff
  333. lower_intrinsics.transmute_uninhabited.LowerIntrinsics.panic-unwind.diff
  334. lower_intrinsics.unchecked.LowerIntrinsics.panic-abort.diff
  335. lower_intrinsics.unchecked.LowerIntrinsics.panic-unwind.diff
  336. lower_intrinsics.unreachable.LowerIntrinsics.panic-abort.diff
  337. lower_intrinsics.unreachable.LowerIntrinsics.panic-unwind.diff
  338. lower_intrinsics.with_overflow.LowerIntrinsics.panic-abort.diff
  339. lower_intrinsics.with_overflow.LowerIntrinsics.panic-unwind.diff
  340. lower_intrinsics.wrapping.LowerIntrinsics.panic-abort.diff
  341. lower_intrinsics.wrapping.LowerIntrinsics.panic-unwind.diff
  342. lower_intrinsics.write_via_move_string.LowerIntrinsics.panic-abort.diff
  343. lower_intrinsics.write_via_move_string.LowerIntrinsics.panic-unwind.diff
  344. lower_slice_len.bound.LowerSliceLenCalls.panic-abort.diff
  345. lower_slice_len.bound.LowerSliceLenCalls.panic-unwind.diff
  346. lower_slice_len.rs
  347. match_arm_scopes.complicated_match.panic-abort.SimplifyCfg-initial.after-ElaborateDrops.after.diff
  348. match_arm_scopes.complicated_match.panic-unwind.SimplifyCfg-initial.after-ElaborateDrops.after.diff
  349. match_arm_scopes.rs
  350. matches_reduce_branches.bar.MatchBranchSimplification.diff
  351. matches_reduce_branches.foo.MatchBranchSimplification.diff
  352. matches_reduce_branches.match_i128_u128.MatchBranchSimplification.diff
  353. matches_reduce_branches.match_i16_i8.MatchBranchSimplification.diff
  354. matches_reduce_branches.match_i8_i16.MatchBranchSimplification.diff
  355. matches_reduce_branches.match_i8_i16_failed.MatchBranchSimplification.diff
  356. matches_reduce_branches.match_nested_if.MatchBranchSimplification.diff
  357. matches_reduce_branches.match_u8_i16.MatchBranchSimplification.diff
  358. matches_reduce_branches.match_u8_i16_2.MatchBranchSimplification.diff
  359. matches_reduce_branches.match_u8_i16_failed.MatchBranchSimplification.diff
  360. matches_reduce_branches.match_u8_i16_fallback.MatchBranchSimplification.diff
  361. matches_reduce_branches.match_u8_u16.MatchBranchSimplification.diff
  362. matches_reduce_branches.match_u8_u16_2.MatchBranchSimplification.diff
  363. matches_reduce_branches.rs
  364. matches_u8.exhaustive_match.MatchBranchSimplification.diff
  365. matches_u8.exhaustive_match_i8.MatchBranchSimplification.diff
  366. matches_u8.rs
  367. multiple_return_terminators.rs
  368. multiple_return_terminators.test.MultipleReturnTerminators.diff
  369. no_drop_for_inactive_variant.rs
  370. no_drop_for_inactive_variant.unwrap.SimplifyCfg-pre-optimizations.after.panic-abort.mir
  371. no_drop_for_inactive_variant.unwrap.SimplifyCfg-pre-optimizations.after.panic-unwind.mir
  372. no_spurious_drop_after_call.main.ElaborateDrops.before.panic-abort.mir
  373. no_spurious_drop_after_call.main.ElaborateDrops.before.panic-unwind.mir
  374. no_spurious_drop_after_call.rs
  375. nrvo_miscompile_111005.rs
  376. nrvo_miscompile_111005.wrong.RenameReturnPlace.diff
  377. nrvo_simple.nrvo.RenameReturnPlace.panic-abort.diff
  378. nrvo_simple.nrvo.RenameReturnPlace.panic-unwind.diff
  379. nrvo_simple.rs
  380. or_pattern.rs
  381. or_pattern.shortcut_second_or.SimplifyCfg-initial.after.mir
  382. or_pattern.single_switchint.SimplifyCfg-initial.after.mir
  383. packed_struct_drop_aligned.main.SimplifyCfg-pre-optimizations.after.panic-abort.mir
  384. packed_struct_drop_aligned.main.SimplifyCfg-pre-optimizations.after.panic-unwind.mir
  385. packed_struct_drop_aligned.rs
  386. README.md
  387. reference_prop.debuginfo.ReferencePropagation.diff
  388. reference_prop.dominate_storage.ReferencePropagation.diff
  389. reference_prop.maybe_dead.ReferencePropagation.diff
  390. reference_prop.multiple_storage.ReferencePropagation.diff
  391. reference_prop.mut_raw_then_mut_shr.ReferencePropagation.diff
  392. reference_prop.read_through_raw.ReferencePropagation.diff
  393. reference_prop.reference_propagation.ReferencePropagation.diff
  394. reference_prop.reference_propagation_const_ptr.ReferencePropagation.diff
  395. reference_prop.reference_propagation_mut.ReferencePropagation.diff
  396. reference_prop.reference_propagation_mut_ptr.ReferencePropagation.diff
  397. reference_prop.rs
  398. reference_prop.unique_with_copies.ReferencePropagation.diff
  399. remove_fake_borrows.match_guard.CleanupPostBorrowck.panic-abort.diff
  400. remove_fake_borrows.match_guard.CleanupPostBorrowck.panic-unwind.diff
  401. remove_fake_borrows.rs
  402. remove_never_const.no_codegen.PreCodegen.after.mir
  403. remove_never_const.rs
  404. remove_storage_markers.main.RemoveStorageMarkers.panic-abort.diff
  405. remove_storage_markers.main.RemoveStorageMarkers.panic-unwind.diff
  406. remove_storage_markers.rs
  407. remove_unneeded_drops.cannot_opt_generic.RemoveUnneededDrops.panic-abort.diff
  408. remove_unneeded_drops.cannot_opt_generic.RemoveUnneededDrops.panic-unwind.diff
  409. remove_unneeded_drops.dont_opt.RemoveUnneededDrops.panic-abort.diff
  410. remove_unneeded_drops.dont_opt.RemoveUnneededDrops.panic-unwind.diff
  411. remove_unneeded_drops.opt.RemoveUnneededDrops.panic-abort.diff
  412. remove_unneeded_drops.opt.RemoveUnneededDrops.panic-unwind.diff
  413. remove_unneeded_drops.opt_generic_copy.RemoveUnneededDrops.panic-abort.diff
  414. remove_unneeded_drops.opt_generic_copy.RemoveUnneededDrops.panic-unwind.diff
  415. remove_unneeded_drops.rs
  416. remove_zsts.get_union.PreCodegen.after.mir
  417. remove_zsts.get_union.RemoveZsts.diff
  418. remove_zsts.rs
  419. retag.array_casts.SimplifyCfg-pre-optimizations.after.panic-abort.mir
  420. retag.array_casts.SimplifyCfg-pre-optimizations.after.panic-unwind.mir
  421. retag.box_to_raw_mut.SimplifyCfg-pre-optimizations.after.panic-abort.mir
  422. retag.box_to_raw_mut.SimplifyCfg-pre-optimizations.after.panic-unwind.mir
  423. retag.core.ptr-drop_in_place.Test.SimplifyCfg-make_shim.after.panic-abort.mir
  424. retag.core.ptr-drop_in_place.Test.SimplifyCfg-make_shim.after.panic-unwind.mir
  425. retag.main-{closure#0}.SimplifyCfg-pre-optimizations.after.panic-abort.mir
  426. retag.main-{closure#0}.SimplifyCfg-pre-optimizations.after.panic-unwind.mir
  427. retag.main.SimplifyCfg-pre-optimizations.after.panic-abort.mir
  428. retag.main.SimplifyCfg-pre-optimizations.after.panic-unwind.mir
  429. retag.rs
  430. retag.{impl#0}-foo.SimplifyCfg-pre-optimizations.after.panic-abort.mir
  431. retag.{impl#0}-foo.SimplifyCfg-pre-optimizations.after.panic-unwind.mir
  432. retag.{impl#0}-foo_shr.SimplifyCfg-pre-optimizations.after.panic-abort.mir
  433. retag.{impl#0}-foo_shr.SimplifyCfg-pre-optimizations.after.panic-unwind.mir
  434. return_an_array.rs
  435. separate_const_switch.identity.JumpThreading.diff
  436. separate_const_switch.rs
  437. separate_const_switch.too_complex.JumpThreading.diff
  438. set_no_discriminant.f.JumpThreading.diff
  439. set_no_discriminant.generic.JumpThreading.diff
  440. set_no_discriminant.rs
  441. simplify_arm.id_try.SimplifyArmIdentity.diff
  442. simplify_arm.id_try.SimplifyBranchSame.diff
  443. simplify_arm.rs
  444. simplify_arm_identity.rs
  445. simplify_cfg.main.SimplifyCfg-initial.diff
  446. simplify_cfg.main.SimplifyCfg-post-analysis.diff
  447. simplify_cfg.rs
  448. simplify_dead_blocks.assert_nonzero_nonmax.SimplifyCfg-after-unreachable-enum-branching.diff
  449. simplify_dead_blocks.rs
  450. simplify_if.main.SimplifyConstCondition-after-const-prop.panic-abort.diff
  451. simplify_if.main.SimplifyConstCondition-after-const-prop.panic-unwind.diff
  452. simplify_if.rs
  453. simplify_locals.c.SimplifyLocals-before-const-prop.diff
  454. simplify_locals.d1.SimplifyLocals-before-const-prop.diff
  455. simplify_locals.d2.SimplifyLocals-before-const-prop.diff
  456. simplify_locals.expose_provenance.SimplifyLocals-before-const-prop.diff
  457. simplify_locals.r.SimplifyLocals-before-const-prop.diff
  458. simplify_locals.rs
  459. simplify_locals.t1.SimplifyLocals-before-const-prop.diff
  460. simplify_locals.t2.SimplifyLocals-before-const-prop.diff
  461. simplify_locals.t3.SimplifyLocals-before-const-prop.diff
  462. simplify_locals.t4.SimplifyLocals-before-const-prop.diff
  463. simplify_locals_fixedpoint.foo.SimplifyLocals-final.panic-abort.diff
  464. simplify_locals_fixedpoint.foo.SimplifyLocals-final.panic-unwind.diff
  465. simplify_locals_fixedpoint.rs
  466. simplify_locals_removes_unused_consts.main.SimplifyLocals-before-const-prop.panic-abort.diff
  467. simplify_locals_removes_unused_consts.main.SimplifyLocals-before-const-prop.panic-unwind.diff
  468. simplify_locals_removes_unused_consts.rs
  469. simplify_locals_removes_unused_discriminant_reads.map.SimplifyLocals-before-const-prop.diff
  470. simplify_locals_removes_unused_discriminant_reads.rs
  471. simplify_match.main.GVN.panic-abort.diff
  472. simplify_match.main.GVN.panic-unwind.diff
  473. simplify_match.rs
  474. simplify_try_if_let.rs
  475. simplify_try_if_let.{impl#0}-append.SimplifyArmIdentity.diff
  476. single_use_consts.assign_const_to_return.SingleUseConsts.panic-abort.diff
  477. single_use_consts.assign_const_to_return.SingleUseConsts.panic-unwind.diff
  478. single_use_consts.if_const.SingleUseConsts.panic-abort.diff
  479. single_use_consts.if_const.SingleUseConsts.panic-unwind.diff
  480. single_use_consts.if_const_debug.SingleUseConsts.panic-abort.diff
  481. single_use_consts.if_const_debug.SingleUseConsts.panic-unwind.diff
  482. single_use_consts.keep_parameter.SingleUseConsts.panic-abort.diff
  483. single_use_consts.keep_parameter.SingleUseConsts.panic-unwind.diff
  484. single_use_consts.match_const.SingleUseConsts.panic-abort.diff
  485. single_use_consts.match_const.SingleUseConsts.panic-unwind.diff
  486. single_use_consts.match_const_debug.SingleUseConsts.panic-abort.diff
  487. single_use_consts.match_const_debug.SingleUseConsts.panic-unwind.diff
  488. single_use_consts.never_used_debug.SingleUseConsts.panic-abort.diff
  489. single_use_consts.never_used_debug.SingleUseConsts.panic-unwind.diff
  490. single_use_consts.rs
  491. slice_drop_shim.core.ptr-drop_in_place.[String].AddMovesForPackedDrops.before.mir
  492. slice_drop_shim.rs
  493. ssa_unreachable_116212.rs
  494. storage_ranges.main.nll.0.mir
  495. storage_ranges.rs
  496. switch_to_self.rs
  497. switch_to_self.test.MatchBranchSimplification.diff
  498. tail_call_drops.f.built.after.panic-abort.mir
  499. tail_call_drops.f.built.after.panic-unwind.mir
  500. tail_call_drops.f.ElaborateDrops.panic-abort.diff
  501. tail_call_drops.f.ElaborateDrops.panic-unwind.diff
  502. tail_call_drops.f_with_arg.built.after.panic-abort.mir
  503. tail_call_drops.f_with_arg.built.after.panic-unwind.mir
  504. tail_call_drops.f_with_arg.ElaborateDrops.panic-abort.diff
  505. tail_call_drops.f_with_arg.ElaborateDrops.panic-unwind.diff
  506. tail_call_drops.rs
  507. tls_access.main.PreCodegen.after.mir
  508. tls_access.rs
  509. uninhabited_enum.process_never.SimplifyLocals-final.after.mir
  510. uninhabited_enum.process_void.SimplifyLocals-final.after.mir
  511. uninhabited_enum.rs
  512. uninhabited_fallthrough_elimination.eliminate_fallthrough.UnreachableEnumBranching.diff
  513. uninhabited_fallthrough_elimination.keep_fallthrough.UnreachableEnumBranching.diff
  514. uninhabited_fallthrough_elimination.rs
  515. unreachable.as_match.UnreachablePropagation.panic-abort.diff
  516. unreachable.as_match.UnreachablePropagation.panic-unwind.diff
  517. unreachable.if_let.UnreachablePropagation.panic-abort.diff
  518. unreachable.if_let.UnreachablePropagation.panic-unwind.diff
  519. unreachable.rs
  520. unreachable_diverging.main.UnreachablePropagation.panic-abort.diff
  521. unreachable_diverging.main.UnreachablePropagation.panic-unwind.diff
  522. unreachable_diverging.rs
  523. unreachable_enum_branching.byref.UnreachableEnumBranching.panic-abort.diff
  524. unreachable_enum_branching.byref.UnreachableEnumBranching.panic-unwind.diff
  525. unreachable_enum_branching.custom_discriminant.UnreachableEnumBranching.panic-abort.diff
  526. unreachable_enum_branching.custom_discriminant.UnreachableEnumBranching.panic-unwind.diff
  527. unreachable_enum_branching.otherwise_t1.UnreachableEnumBranching.panic-abort.diff
  528. unreachable_enum_branching.otherwise_t1.UnreachableEnumBranching.panic-unwind.diff
  529. unreachable_enum_branching.otherwise_t2.UnreachableEnumBranching.panic-abort.diff
  530. unreachable_enum_branching.otherwise_t2.UnreachableEnumBranching.panic-unwind.diff
  531. unreachable_enum_branching.otherwise_t3.UnreachableEnumBranching.panic-abort.diff
  532. unreachable_enum_branching.otherwise_t3.UnreachableEnumBranching.panic-unwind.diff
  533. unreachable_enum_branching.otherwise_t4.UnreachableEnumBranching.panic-abort.diff
  534. unreachable_enum_branching.otherwise_t4.UnreachableEnumBranching.panic-unwind.diff
  535. unreachable_enum_branching.otherwise_t4_unreachable_default.UnreachableEnumBranching.panic-abort.diff
  536. unreachable_enum_branching.otherwise_t4_unreachable_default.UnreachableEnumBranching.panic-unwind.diff
  537. unreachable_enum_branching.otherwise_t4_unreachable_default_2.UnreachableEnumBranching.panic-abort.diff
  538. unreachable_enum_branching.otherwise_t4_unreachable_default_2.UnreachableEnumBranching.panic-unwind.diff
  539. unreachable_enum_branching.otherwise_t5_unreachable_default.UnreachableEnumBranching.panic-abort.diff
  540. unreachable_enum_branching.otherwise_t5_unreachable_default.UnreachableEnumBranching.panic-unwind.diff
  541. unreachable_enum_branching.rs
  542. unreachable_enum_branching.simple.UnreachableEnumBranching.panic-abort.diff
  543. unreachable_enum_branching.simple.UnreachableEnumBranching.panic-unwind.diff
  544. unusual_item_types.core.ptr-drop_in_place.Vec_i32_.AddMovesForPackedDrops.before.mir
  545. unusual_item_types.E-V-{constant#0}.built.after.mir
  546. unusual_item_types.rs
  547. unusual_item_types.Test-X-{constructor#0}.built.after.mir
  548. unusual_item_types.{impl#0}-ASSOCIATED_CONSTANT.built.after.mir
tests/mir-opt/README.md

This folder contains tests for MIR optimizations.

The mir-opt test format emits MIR to extra files that you can automatically update by specifying --bless on the command line (just like ui tests updating .stderr files).

--blessable test format

By default 32 bit and 64 bit targets use the same dump files, which can be problematic in the presence of pointers in constants or other bit width dependent things. In that case you can add

// EMIT_MIR_FOR_EACH_BIT_WIDTH

to your test, causing separate files to be generated for 32bit and 64bit systems.

Testing a particular MIR pass

If you are only testing the behavior of a particular mir-opt pass on some specific input (as is usually the case), you should add

//@ test-mir-pass: PassName

to the top of the file. This makes sure that other passes don‘t run which means you’ll get the input you expected and your test won't break when other code changes. This also lets you test passes that are disabled by default.

Emit a diff of the mir for a specific optimization

This is what you want most often when you want to see how an optimization changes the MIR.

// EMIT_MIR $file_name_of_some_mir_dump.diff

Emit mir after a specific optimization

Use this if you are just interested in the final state after an optimization.

// EMIT_MIR $file_name_of_some_mir_dump.after.mir

Emit mir before a specific optimization

This exists mainly for completeness and is rarely useful.

// EMIT_MIR $file_name_of_some_mir_dump.before.mir

FileCheck directives

The LLVM FileCheck tool is used to verify the contents of output MIR against CHECK directives present in the test file. This works on the runtime MIR, generated by --emit=mir, and not on the output of a individual passes.

Use // skip-filecheck to prevent FileCheck from running.

To check MIR for function foo, start with a // CHECK-LABEL fn foo( directive.

{{regex}} syntax allows to match regex.

[[name:regex]] syntax allows to bind name to a string matching regex, and refer to it as [[name]] in later directives, regex should be written not to match a leading space. Use [[my_local:_.*]] to name a local, and [[my_bb:bb.*]] to name a block.

Documentation for FileCheck is available here: https://www.llvm.org/docs/CommandGuide/FileCheck.html