Ryan Mehri
2fcb4d92b0
change inline_retag to after.mir
2023-10-31 11:58:20 -07:00
Camille GILLOT
cb918904fe
Only emit != assumptions if the otherwise target is reachable.
2023-10-31 11:44:23 +00:00
Camille GILLOT
0b13e636f5
Simplify assume of a constant.
2023-10-31 11:44:23 +00:00
Camille GILLOT
c748ac1f11
Replace SwitchInt to unreachable by an assumption.
2023-10-31 11:44:23 +00:00
Ryan Mehri
1ec10ec77f
address review comments
2023-10-25 15:25:38 -07:00
Ryan Mehri
6ab66c3f37
FileCheck unwrap_unchecked
2023-10-25 15:25:38 -07:00
Ryan Mehri
3faf05b6e7
FileCheck unsized_argument
2023-10-25 15:25:38 -07:00
Ryan Mehri
6e047c07a6
FileCheck unchecked_shifts
2023-10-25 15:25:38 -07:00
Ryan Mehri
5cf65eb16a
FileCheck issue_78442
2023-10-25 15:25:38 -07:00
Ryan Mehri
bb695977de
FileCheck inline_scopes_parenting
2023-10-25 15:25:38 -07:00
Ryan Mehri
773dc62756
FileCheck inline_as_ref_as_mut
2023-10-25 15:25:38 -07:00
Ryan Mehri
1b9cb5d59b
FileCheck inline_trait_method
2023-10-25 15:25:38 -07:00
Ryan Mehri
f7acf17945
FileCheck inline_trait_method_2
2023-10-25 15:25:38 -07:00
Ryan Mehri
25325667f2
FileCheck inline_specialization
2023-10-25 15:25:38 -07:00
Ryan Mehri
21a4c39cb8
FileCheck inline_retag
2023-10-25 15:25:38 -07:00
Ryan Mehri
3202d4e357
FileCheck inline_options
2023-10-25 15:25:38 -07:00
Ryan Mehri
de8255194a
FileCheck inline_into_box_place
2023-10-25 15:25:38 -07:00
Ryan Mehri
19c36a96df
FileCheck inline_instruction_set
2023-10-25 15:25:38 -07:00
Ryan Mehri
20e7caa737
FileCheck inline_coroutine
2023-10-25 15:25:38 -07:00
Ryan Mehri
d8f33ef93d
FileCheck inline_diverging
2023-10-25 15:25:38 -07:00
Ryan Mehri
7ee05d24b5
FileCheck inline_closure
2023-10-25 15:22:01 -07:00
Ryan Mehri
5caee416a5
FileCheck inline_closure_captures
2023-10-25 15:22:01 -07:00
Ryan Mehri
9d61e6a4e4
FileCheck inline_closure_borrows_arg
2023-10-25 15:22:01 -07:00
Ryan Mehri
de56d2d9b2
FileCheck inline_box_fn
2023-10-25 15:22:01 -07:00
Ryan Mehri
22679cd36d
FileCheck inline_any_operand
2023-10-25 15:22:01 -07:00
Ryan Mehri
f005d2325a
FileCheck exponential_runtime
2023-10-25 15:22:01 -07:00
Ryan Mehri
76faae9cdc
FileCheck dyn_trait
2023-10-25 15:22:01 -07:00
Ryan Mehri
9b3f5e1527
FileCheck dont_ice_on_generic_rust_call
2023-10-25 15:22:01 -07:00
Ryan Mehri
2f9aa7da9f
FileCheck cycle
2023-10-25 15:22:01 -07:00
Ryan Mehri
2d0a34bb78
FileCheck caller_with_trivial_bound
2023-10-25 15:22:01 -07:00
Ryan Mehri
62fe807e3c
FileCheck asm_unwind
2023-10-25 15:22:01 -07:00
Tomasz Miąsko
011b260cc8
Require target features to match exactly during inlining
...
In general it is not correct to inline a callee with a target features
that are subset of the callee. Require target features to match exactly
during inlining.
The exact match could be potentially relaxed, but this would require
identifying specific feature that are allowed to differ, those that need
to match, and those that can be present in caller but not in callee.
This resolves MIR part of #116573 . For other concerns with respect to
the previous implementation also see areInlineCompatible in LLVM.
2023-10-24 22:49:15 +02:00
Tomasz Miąsko
b3cfd5bb04
Precommit target features compatibility test
2023-10-24 22:44:59 +02:00
Tomasz Miąsko
ff7bf792ce
Migrate inline_compatibility.rs test to FileCheck
2023-10-24 22:19:44 +02:00
Camille GILLOT
c9c0c0cbca
Do not create move paths that do not need dropping.
2023-10-21 10:32:59 +00:00
Oli Scherer
e96ce20b34
s/generator/coroutine/
2023-10-20 21:14:01 +00:00
Oli Scherer
60956837cf
s/Generator/Coroutine/
2023-10-20 21:10:38 +00:00
Camille GILLOT
69d9369f0c
FileCheck inline_shims.
2023-10-19 15:51:54 +00:00
Camille GILLOT
13683554ed
FileCheck issue_106141.
2023-10-19 15:51:54 +00:00
Camille GILLOT
4ff03cd1a4
Allow to run filecheck in mir-opt tests.
2023-10-19 15:51:52 +00:00
Camille GILLOT
c1c5a1d69a
Only check in a single place if a pass is enabled.
2023-10-18 16:59:23 +00:00
Ben Kimock
33b0e4be06
Automatically enable cross-crate inlining for small functions
2023-10-17 19:53:51 -04:00
ltdk
91405ab74a
Clean up unchecked_math, separate out unchecked_shifts
2023-10-13 02:17:08 -04:00
Camille GILLOT
37f080edbc
Also consider call and yield as MIR SSA.
2023-10-08 16:05:26 +00:00
ouz-a
3088c4b046
move subtyper change reveal_all
2023-10-05 18:56:30 +03:00
Camille GILLOT
e63d19c4dd
Remove mir::LocalDecl::internal.
2023-10-04 17:55:15 +00:00
ouz-a
5d753abb30
have better explanation for relate_types
2023-10-02 23:39:45 +03:00
ouz-a
6f0c5ee2d4
change is_subtype to relate_types
2023-10-02 23:39:45 +03:00
ouz-a
cd7f471931
Add docs, remove code, change subtyper code
2023-10-02 23:39:44 +03:00
Oli Scherer
f5df26dbec
Unconditionally run RevealAll pass and run it earlier
2023-09-28 16:13:38 +00:00