about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-10-25 19:51:14 +0200
committerGitHub <noreply@github.com>2023-10-25 19:51:14 +0200
commita1ab16792b2c425abbdee84956f503aa97c07f43 (patch)
tree90b8060870dbe309b79ecc0a154f74ee5865fa56 /compiler/rustc_codegen_llvm/src/errors.rs
parent24254d21423334a9bd811f2eeb57ce25323e1115 (diff)
parent011b260cc83713599c4a3ff9bb242f92ee792b7e (diff)
downloadrust-a1ab16792b2c425abbdee84956f503aa97c07f43.tar.gz
rust-a1ab16792b2c425abbdee84956f503aa97c07f43.zip
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.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions