Camille GILLOT
1f370d9437
Use tcx.hir() utils for spans in MIR building.
...
This corrects the `span_with_body` in the case of closures, which was
incorrectly shortened to the `def_span`.
2022-09-13 19:18:23 +02:00
Tomasz Miąsko
f8ca6aad83
./x.py test --bless
2022-08-23 00:00:00 +00:00
Jakob Degen
efa5eaa5d1
Avoid invalidating the CFG in MirPatch.
...
As a part of this change, we adjust MirPatch to not needlessly create unnecessary resume blocks.
2022-08-02 18:57:54 -07:00
Nilstrieb
11c0280798
bless mir opt tests
2022-07-28 14:24:44 +02:00
ouz-a
cb0017f2f8
add new rval, pull deref early
2022-07-12 14:26:41 +03:00
Camille GILLOT
8cc87250ef
Shorten span for closures.
2022-07-07 09:27:42 +02:00
ouz-a
e71913e847
validate derefer, run derefer inside generator
2022-05-30 18:36:14 +03:00
ouz-a
8ba8b223af
fix CI err
2022-04-16 16:35:03 +03:00
ouz-a
aada74b28f
Make derefer work everwhere
...
Co-Authored-By: Oli Scherer <332036+oli-obk@users.noreply.github.com>
2022-04-16 16:03:14 +03:00
Jakob Degen
2a040284a5
Fix tests broken by deaggregation change
2022-04-11 09:26:26 -04:00
Camille GILLOT
e77e4fcf89
Only create a single expansion for each inline integration.
2022-02-27 19:05:56 +01:00
Tomasz Miąsko
6f49aadabb
Disable destination propagation on all mir-opt-levels
2021-03-06 00:00:00 +00:00
Oliver Scherer
c8a866ea17
Show the inline stack of MIR lints that only occur after inlining
2020-10-27 14:08:07 +00:00
Eduard-Mihai Burtescu
9b21c50335
rustc_mir: create the Integrator as soon as possible in MIR inlining.
2020-10-21 05:46:16 +03:00
Eduard-Mihai Burtescu
2bfb462b58
rustc_mir: don't throw away inlined locals' spans.
2020-10-21 04:43:56 +03:00
Eduard-Mihai Burtescu
6bc5eafbce
rustc_mir: track inlined callees in SourceScopeData.
2020-10-21 04:43:56 +03:00
Aman Arora
c923da0b49
pretty.rs: Update Closure and Generator print
...
Co-authored-by: Dhruv Jauhar <dhruvjhr@gmail.com>
Co-authored-by: Logan Mosier <logmosier@gmail.com>
2020-09-28 01:27:19 -04:00
marmeladema
f1878d19fa
Move from {{closure}}#0 syntax to {closure#0} for (def) path components
2020-09-25 22:46:14 +01:00
Jonas Schievink
8a3e2b78bb
Bless mir-opt tests
2020-09-18 21:23:00 +02:00
Tomasz Miąsko
9daf8fd5b1
inliner: Emit storage markers for introduced arg temporaries
...
When introducing argument temporaries during inlining, emit storage
marker statements just before the assignment and in the beginning of
the return block.
This ensures that such temporaries will not be considered live across
yield points after inlining inside a generator.
2020-09-03 17:01:27 +02:00
Ralf Jung
307d0d8f51
move Deaggregate pass to post_borrowck_cleanup
2020-08-11 17:09:15 +02:00
Xavier Denis
f07607f47a
Move mir-opt tests to toplevel
2020-07-29 17:36:03 +02:00