This repository was archived by the owner on May 28, 2025. It is now read-only.
Commit 1a69ffe
authored
Unrolled build for rust-lang#117141
Rollup merge of rust-lang#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 rust-lang#116573. For other concerns with respect to
the previous implementation also see areInlineCompatible in LLVM.File tree
12 files changed
+44
-230
lines changed- compiler/rustc_mir_transform/src
- tests/mir-opt/inline
12 files changed
+44
-230
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
438 | 438 | | |
439 | 439 | | |
440 | 440 | | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
| 441 | + | |
| 442 | + | |
445 | 443 | | |
446 | 444 | | |
447 | 445 | | |
| |||
Lines changed: 0 additions & 21 deletions
This file was deleted.
Lines changed: 0 additions & 21 deletions
This file was deleted.
Lines changed: 0 additions & 21 deletions
This file was deleted.
Lines changed: 0 additions & 21 deletions
This file was deleted.
Lines changed: 0 additions & 22 deletions
This file was deleted.
Lines changed: 0 additions & 22 deletions
This file was deleted.
Lines changed: 0 additions & 19 deletions
This file was deleted.
Lines changed: 0 additions & 19 deletions
This file was deleted.
Lines changed: 0 additions & 19 deletions
This file was deleted.
0 commit comments