rust/compiler/rustc_mir_transform
Matthias Krüger a1ab16792b
Rollup merge of #117141 - tmiasko:inline-target-features, r=oli-obk
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-25 19:51:14 +02:00
..
src Rollup merge of #117141 - tmiasko:inline-target-features, r=oli-obk 2023-10-25 19:51:14 +02:00
Cargo.toml Implement JumpThreading pass. 2023-10-21 06:58:38 +00:00
messages.ftl