George Bateman
23f46e5b99
Stabilize offset_of_nested
2024-07-29 17:50:12 +01:00
DianQK
ae681c940d
Perform instsimplify before inline to eliminate some trivial calls
2024-07-29 18:14:35 +08:00
Boxy
d0c11bf6e3
Split part of adt_const_params
into unsized_const_params
2024-07-17 11:01:29 +01:00
Josh Stone
7c3673ff6f
Bless mir-opt for excluded alloc bytes
2024-06-26 15:30:47 -07:00
Josh Stone
1a05cb2d93
Use -Zdump-mir-exclude-alloc-bytes
in some mir-opt tests
2024-06-26 15:05:01 -07:00
Nicholas Nethercote
c9c80d2c5f
rustfmt tests/mir-opt
.
...
The only non-obvious changes:
- `building/storage_live_dead_in_statics.rs` has a `#[rustfmt::skip]`
attribute to avoid reformating a table of data.
- Two `.mir` files have slight changes involving line numbers.
- In `unusual_item_types.rs` an `EMIT_MIR` annotation is moved to
outside a function, which is the usual spot, because `tidy` complains
if such a comment is indented.
The commit also tweaks the comments in `rustfmt.toml`.
2024-06-03 14:17:16 +10:00
Scott McMurray
95c0e5c6a8
Remove Rvalue::CheckedBinaryOp
2024-05-17 20:33:02 -07:00
George Bateman
2348eb271c
Update mir-opt tests, add proper regression test
2024-04-28 21:10:09 +01:00
Gary Guo
cfee72aa24
Fix tests and bless
2024-04-24 13:12:33 +01:00
Ralf Jung
75d0fdd967
mir-opt tests: rename unit-test -> test-mir-pass
2024-04-20 13:19:34 +02:00
Scott McMurray
d05545c05d
At debuginfo=0, don't inline debuginfo when inlining
2024-04-18 09:35:35 -07:00
joboet
989660c3e6
rename expose_addr
to expose_provenance
2024-04-03 16:00:38 +02:00
Matthew Jasper
a277c901d9
Remove MIR unsafe check
...
This also remove safety information from MIR.
2024-04-03 08:50:12 +00:00
Ralf Jung
038e7c6c38
rename MIR int2ptr casts to match library name
2024-03-23 13:18:33 +01:00
Ralf Jung
7d99e80c55
MIR printing: print the path of uneval'd const; refer to promoteds in a consistent way
2024-03-10 14:59:41 +01:00
许杰友 Jieyou Xu (Joe)
6e48b96692
[AUTO_GENERATED] Migrate compiletest to use ui_test
-style //@
directives
2024-02-22 16:04:04 +00:00
Camille GILLOT
304b4ad8b9
Compute unsizing casts in GVN.
2024-02-09 21:01:57 +00:00
George Bateman
803b810eac
Remove feature(offset_of) from tests
2024-01-19 20:38:51 +00:00
Camille GILLOT
3c48243b6f
Simplify Len.
2024-01-16 22:20:54 +00:00
Camille GILLOT
666030c51b
Simplify binary ops.
2024-01-16 22:20:53 +00:00
Camille GILLOT
7e39100586
Avoid recording no-op replacements.
2024-01-07 13:54:05 +00:00
Camille GILLOT
4ee01faaf0
Do not re-simplify SSA locals.
2024-01-07 13:54:05 +00:00
Camille GILLOT
2837727471
Replace legacy ConstProp by GVN.
2023-12-24 20:08:57 +00:00
Camille GILLOT
30a95b7c0a
FileCheck while_let_loops.
2023-12-02 21:10:04 +00:00
Camille GILLOT
c00068e49f
FileCheck tuple_literal_propagation.
2023-12-02 21:08:55 +00:00
Camille GILLOT
87522d0007
FileCheck return_place.
2023-12-02 21:08:12 +00:00
Camille GILLOT
a12027e128
FileCheck switch_int.
2023-12-02 21:06:48 +00:00
Camille GILLOT
19767eb7a6
FileCheck slice_len.
2023-12-02 21:06:38 +00:00
Camille GILLOT
3e90c1b434
FileCheck scalar_literal_propagation.
2023-12-02 21:02:42 +00:00
Camille GILLOT
f3743aec51
FileCheck repeat.
2023-12-02 21:01:48 +00:00
Camille GILLOT
343ef6a9cb
FileCheck reify_fn_ptr.
2023-12-02 21:00:59 +00:00
Camille GILLOT
6baec3ccc2
FileCheck ref_deref.
2023-12-02 20:58:45 +00:00
Camille GILLOT
c8c9207e4c
FileCheck read_immutable_static.
2023-12-02 20:56:26 +00:00
Camille GILLOT
45dd5d6bf3
FileCheck mutable_variable_unprop_assign.
2023-12-02 20:54:56 +00:00
Camille GILLOT
6a8eea8f5b
FileCheck mutable_variable_aggregate_partial_read.
2023-12-02 20:51:23 +00:00
Camille GILLOT
d91bb5074e
FileCheck mutable_variable_no_prop.
2023-12-02 20:50:00 +00:00
Camille GILLOT
3e169abc1b
FileCheck mutable_variable_aggregate_mut_ref.
2023-12-02 20:49:50 +00:00
Camille GILLOT
03c5ad1549
FileCheck mutable_variable_aggregate.
2023-12-02 20:49:38 +00:00
Camille GILLOT
ea9f968333
FileCheck mutable_variable.
2023-12-02 20:49:28 +00:00
Camille GILLOT
902a3e2e75
FileCheck mult_by_zero.
2023-12-02 20:39:26 +00:00
Camille GILLOT
8e9b912c4c
FileCheck issue_67019.
2023-12-02 20:38:07 +00:00
Camille GILLOT
ce9b1e23a5
FileCheck issue_66971.
2023-12-02 20:37:05 +00:00
Camille GILLOT
218d8ccf43
FileCheck inherit_overflow.
2023-12-02 20:31:27 +00:00
Camille GILLOT
6086dd6766
FileCheck indirect.
2023-12-02 20:29:47 +00:00
Camille GILLOT
bf5d114da8
FileCheck discriminant.
2023-12-02 20:28:33 +00:00
Camille GILLOT
043d29b58a
FileCheck and rename const_prop_fails_gracefully.
2023-12-02 20:23:16 +00:00
Camille GILLOT
7f328d2a44
FileCheck checked_add.
2023-12-02 20:18:58 +00:00
Camille GILLOT
e6a1b77cd1
FileCheck cast.
2023-12-02 20:18:47 +00:00
Camille GILLOT
b8f2f63931
FileCheck boxes.
2023-12-02 20:18:21 +00:00
Camille GILLOT
3fc03948a8
FileCheck boolean_identities.
2023-12-02 20:18:14 +00:00