summary refs log tree commit diff
path: root/compiler/rustc_mir/src/transform
AgeCommit message (Expand)AuthorLines
2020-09-26Move `qualify_min_const_fn` out of rustc into clippyOliver Scherer-463/+0
2020-09-26Rollup merge of #77122 - ecstatic-morse:const-fn-arithmetic, r=RalfJung,oli-obkRalf Jung-9/+46
2020-09-25No need to call `is_min_const_fn` for side-effectsDylan MacKenzie-3/+0
2020-09-25Auto merge of #77198 - jonas-schievink:rollup-i59i41h, r=jonas-schievinkbors-1/+1
2020-09-25Rollup merge of #77066 - jonas-schievink:dest-prop-borrow, r=oli-obkJonas Schievink-1/+1
2020-09-25Put floating point arithmetic behind its own feature gateDylan MacKenzie-9/+22
2020-09-25Add `const_fn_floating_point_arithmetic`Dylan MacKenzie-0/+24
2020-09-25Auto merge of #77157 - tmiasko:simplify-cfg-dup, r=jonas-schievinkbors-1/+0
2020-09-25Auto merge of #76844 - simonvandel:fix-76803, r=wesleywiserbors-23/+34
2020-09-25Rollup merge of #77165 - simonvandel:do-not-fire-on-drop-and-replace, r=oli-obkJonas Schievink-2/+1
2020-09-25Rollup merge of #77160 - ecstatic-morse:const-fn-transmute-suggestion, r=oli-obkJonas Schievink-1/+8
2020-09-25Rollup merge of #77136 - ecstatic-morse:issue-77134, r=oli-obkJonas Schievink-1/+8
2020-09-25Rollup merge of #76724 - ecstatic-morse:dataflow-pass-names, r=lcnrJonas Schievink-2/+9
2020-09-24Suggest `const_fn_transmute` instead of `const_fn`Dylan MacKenzie-1/+8
2020-09-24Resolve https://github.com/rust-lang/rust/pull/76673#discussion_r494426303Simon Vandel Sillesen-2/+1
2020-09-24EarlyOtherwiseBranch::run_pass(): don't convert Place to Place (clippy::usele...Matthias Krüger-1/+1
2020-09-24Auto merge of #76748 - tmiasko:no-op-jumps, r=matthewjasperbors-9/+10
2020-09-23Suggest `const_mut_refs` for mutable references in const fnDylan MacKenzie-1/+8
2020-09-24Remove duplicated SimplifyCfg passTomasz Miąsko-1/+0
2020-09-23Auto merge of #76673 - simonvandel:remove-unneeded-drops, r=oli-obkbors-0/+61
2020-09-23Enable const prop into operands at mir_opt_level=2Dániel Buga-5/+5
2020-09-23Auto merge of #76659 - simonvandel:76432, r=oli-obkbors-21/+22
2020-09-22cleanup cfg after optimizationSimon Vandel Sillesen-0/+9
2020-09-22The optimization should also apply for DropAndReplaceSimon Vandel Sillesen-1/+2
2020-09-22Get LocalDefId from source instead of passing inSimon Vandel Sillesen-11/+3
2020-09-22Suggestion from reviewSimon Vandel Sillesen-1/+1
2020-09-22MIR pass to remove unneeded drops on types not needing dropSimon Vandel Sillesen-0/+59
2020-09-22Fix dest prop miscompilation around referencesJonas Schievink-1/+1
2020-09-22Use correct feature gate for unsizing castsDylan MacKenzie-5/+1
2020-09-22Replace missing commentDylan MacKenzie-0/+2
2020-09-22Use the same name everywhere for `is_const_stable_const_fn`Dylan MacKenzie-2/+4
2020-09-22Update const-checker to replicate `qualify_min_const_fn`Dylan MacKenzie-73/+268
2020-09-22Add structured errors for `qualify_min_const_fn` checksDylan MacKenzie-3/+220
2020-09-22Allow errors to abort const checking when emittedDylan MacKenzie-4/+22
2020-09-22Return `true` if `check_const` emits an errorDylan MacKenzie-7/+11
2020-09-22Add const-stability helpersDylan MacKenzie-10/+45
2020-09-22Useful derives on `ops::Status`Dylan MacKenzie-0/+1
2020-09-21Rollup merge of #76888 - matthiaskrgr:clippy_single_match_2, r=Dylan-DPCecstatic-morse-11/+5
2020-09-21Rollup merge of #76807 - ecstatic-morse:const-checking-staged-api, r=oli-obkecstatic-morse-65/+109
2020-09-21Add optimization to avoid load of addressSimon Vandel Sillesen-2/+115
2020-09-20Auto merge of #75119 - simonvandel:early-otherwise, r=oli-obkbors-0/+341
2020-09-20Rollup merge of #76890 - matthiaskrgr:matches_simpl, r=lcnrRalf Jung-3/+2
2020-09-20enable on mir-opt-level=1 to test perfSimon Vandel Sillesen-1/+1
2020-09-20add cleanup of cfgSimon Vandel Sillesen-0/+10
2020-09-20insert storageDead for not equal tempSimon Vandel Sillesen-11/+27
2020-09-20correct commentSimon Vandel Sillesen-1/+1
2020-09-20Update src/librustc_mir/transform/early_otherwise_branch.rsSimon Vandel Sillesen-1/+1
2020-09-20New MIR optimization pass to reduce branches on match of tuples of enumsSimon Vandel Sillesen-0/+315
2020-09-20use if let instead of single match arm expressions to compact code and reduce...Matthias Krüger-11/+5
2020-09-20Auto merge of #76411 - RalfJung:promote-in-const-fn, r=ecstatic-morsebors-26/+35