about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/gvn.rs
AgeCommit message (Expand)AuthorLines
2024-10-07Auto merge of #131068 - RalfJung:immediate-offset-sanity-check, r=nnethercotebors-7/+23
2024-10-05fix GVN trying to transmute pointers to integersRalf Jung-7/+23
2024-10-04Use wide pointers consistenly across the compilerUrgau-3/+3
2024-10-01make InterpResult a dedicated type to avoid accidentally discarding the errorRalf Jung-60/+55
2024-09-30panic when an interpreter error gets unintentionally discardedRalf Jung-53/+62
2024-09-24be even more precise about "cast" vs "coercion"Lukas Markeffsky-5/+5
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-6/+6
2024-09-14Simplify the canonical clone method to copyDianQK-1/+97
2024-09-10Remove references from some structs.Nicholas Nethercote-4/+4
2024-09-10Clarify a comment.Nicholas Nethercote-1/+1
2024-09-10Inline and remove some functions.Nicholas Nethercote-44/+41
2024-09-10Improve comment formatting.Nicholas Nethercote-4/+6
2024-09-09Reduce visibilities, and add `warn(unreachable_pub)`.Nicholas Nethercote-1/+1
2024-09-03Move `MirPass` to `rustc_mir_transform`.Nicholas Nethercote-1/+1
2024-08-30Remove `#[macro_use] extern crate tracing` from `rustc_mir_transform`.Nicholas Nethercote-0/+1
2024-08-18rename AddressOf -> RawBorrow inside the compilerRalf Jung-2/+2
2024-07-31Do not intern if we have provenance.Camille GILLOT-1/+6
2024-07-31Simplify constant creation.Camille GILLOT-5/+10
2024-07-31Encode constant determinism in disambiguator.Camille GILLOT-7/+8
2024-07-31Reduce allocations in GVN.Camille GILLOT-4/+12
2024-07-31Amortize growing rev_locals.Camille GILLOT-1/+7
2024-07-31Indirect places can only appear as first projection in runtime MIR.Camille GILLOT-1/+1
2024-07-31Do not normalize constants eagerly.Camille GILLOT-4/+1
2024-07-29Reformat `use` declarations.Nicholas Nethercote-6/+8
2024-07-06Update compiler/rustc_mir_transform/src/gvn.rsCamille Gillot-2/+2
2024-07-05Verify that allocations output by GVN are sufficiently aligned.Camille GILLOT-5/+9
2024-07-02chore: remove duplicate wordshattizai-1/+1
2024-06-28Only update `Eq` operands in GVN if you can update both sidesScott McMurray-5/+5
2024-06-22GVN away PtrToPtr-then-Transmute when possibleScott McMurray-13/+43
2024-06-22GVN away PtrToPtr before comparisonsScott McMurray-12/+47
2024-06-22Add a `pointee_metadata_ty_or_projection` helperScott McMurray-14/+5
2024-06-20More GVN for PtrMetadataScott McMurray-10/+86
2024-06-20Add a try_as_constant+try_as_local helperScott McMurray-19/+19
2024-06-19Ban `ArrayToPointer` and `MutToConstPointer` from runtime MIRScott McMurray-7/+3
2024-06-13Small style improvement in `gvn.rs`Waffle Lapkin-2/+1
2024-06-10Rollup merge of #126159 - RalfJung:scalarint-size-mismatch, r=oli-obkMatthias Krüger-3/+3
2024-06-10ScalarInt: size mismatches are a bug, do not delay the panicRalf Jung-3/+3
2024-06-09Rollup merge of #125041 - scottmcm:gvn-for-from-raw-parts, r=cjgillot许杰友 Jieyou Xu (Joe)-12/+87
2024-06-08offset_of: allow (unstably) taking the offset of slice tail fieldsRalf Jung-4/+6
2024-06-06Enable GVN for `AggregateKind::RawPtr` & `UnOp::PtrMetadata`Scott McMurray-12/+87
2024-06-06Auto merge of #125958 - BoxyUwU:remove_const_ty, r=lcnrbors-2/+10
2024-06-05Add `Ty` to `mir::Const::Ty`Boxy-2/+10
2024-06-02Handle all GVN binops in a single place.Camille GILLOT-30/+40
2024-05-27interpret: get rid of 'mir lifetime everywhereRalf Jung-2/+2
2024-05-21interpret: make overflowing binops just normal binopsRalf Jung-11/+8
2024-05-17Remove `Rvalue::CheckedBinaryOp`Scott McMurray-16/+11
2024-05-13Remove `extern crate rustc_middle` from `rustc_mir_transform`.Nicholas Nethercote-0/+1
2024-05-09Make builtin_deref just return a TyMichael Goulet-3/+3
2024-05-03Auto merge of #123602 - cjgillot:gvn-borrowed, r=oli-obkbors-1/+17
2024-04-21Add `AggregateKind::RawPtr` and enough support to compileScott McMurray-0/+3