about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/match_branches.rs
AgeCommit message (Expand)AuthorLines
2025-05-26mir-opt: Do not transform non-int type in match_branchesdianqk-2/+4
2025-04-20mir-opt: Use one MirPatch in MatchBranchSimplificationdianqk-23/+14
2025-04-19Rollup merge of #139042 - compiler-errors:do-not-optimize-switchint, r=saethlinChris Denton-1/+1
2025-04-12In `rustc_mir_tranform`, iterate over index newtypes instead of intsYotam Ofek-9/+8
2025-04-08Do not optimize out SwitchInt before borrowck, or if Zmir-preserve-ubMichael Goulet-1/+1
2025-03-15Stop relying on rustc_type_ir in non-type-system cratesMichael Goulet-5/+4
2025-02-14Move `MirPatch` from `rustc_middle` to `rustc_mir_transform`.Nicholas Nethercote-1/+1
2025-01-23Disable non-required MIR opts with `optimize(none)`clubby789-0/+4
2024-12-27MatchBranchSimplification: Consider empty-unreachable otherwise branchclubby789-9/+21
2024-11-26Remove -Zfuel.Camille GILLOT-5/+0
2024-11-18use `TypingEnv` when no `infcx` is availablelcnr-24/+32
2024-11-03compiler: Directly use rustc_abi in mir_transformJubilee Young-1/+1
2024-09-13Rename and reorder lots of lifetimes.Nicholas Nethercote-1/+1
2024-09-10Improve comment formatting.Nicholas Nethercote-5/+9
2024-09-09Reduce visibilities, and add `warn(unreachable_pub)`.Nicholas Nethercote-1/+1
2024-09-03Rollup merge of #129926 - nnethercote:mv-SanityCheck-and-MirPass, r=cjgillotMatthias Krüger-1/+1
2024-09-03Move `MirPass` to `rustc_mir_transform`.Nicholas Nethercote-1/+1
2024-09-02chore: Fix typos in 'compiler' (batch 2)Alexander Cyon-10/+10
2024-08-03Re-enable SimplifyToExp in match_branches.DianQK-4/+1
2024-08-03Simplify match based on the cast result of `IntToInt`.DianQK-62/+79
2024-07-29Reformat `use` declarations.Nicholas Nethercote-1/+2
2024-06-10ScalarInt: size mismatches are a bug, do not delay the panicRalf Jung-1/+1
2024-04-20Auto merge of #124156 - DianQK:disable-match_branches, r=RalfJungbors-1/+4
2024-04-20Disable SimplifyToExp in MatchBranchSimplificationDianQK-1/+4
2024-04-19ScalarInt: add methods to assert being a (u)int of given sizeRalf Jung-2/+1
2024-04-08Change the return type of `can_simplify` to `Option<()>`DianQK-28/+26
2024-04-08Add comments for `CompareType`DianQK-8/+11
2024-04-08Updating the MIR with MirPatchDianQK-50/+54
2024-04-08Transforms a match containing negative numbers into an assignment statement a...DianQK-11/+38
2024-04-08Transforms match into an assignment statementDianQK-7/+223
2024-04-08Refactor `MatchBranchSimplification`DianQK-133/+205
2024-01-07Merge dead bb pruning and unreachable bb deduplication.Camille GILLOT-1/+1
2023-12-10remove redundant importssurechen-1/+0
2023-09-21rename mir::Constant -> mir::ConstOperand, mir::ConstKind -> mir::ConstRalf Jung-6/+6
2023-07-25inline format!() args from rustc_codegen_llvm to the end (4)Matthias Krüger-1/+1
2023-05-27Try enabling MatchBranchSimplificationBen Kimock-2/+7
2023-04-23Use param_env_reveal_all_normalized in MIR opts.Camille GILLOT-1/+1
2022-12-09Remove unneeded field from `SwitchTargets`Jakob Degen-6/+6
2022-07-07Make MIR basic blocks field publicTomasz Miąsko-2/+2
2022-05-02fix most compiler/ doctestsElliot Roberts-2/+2
2021-12-02Update passes with new interfaceDylan MacKenzie-4/+4
2021-09-07Rename rustc_mir to rustc_const_eval.Camille GILLOT-1/+1
2021-09-07Move rustc_mir::transform to rustc_mir_transform.Camille GILLOT-0/+176