Repository navigation
Reinstate inline always - #2293
Jamesbarford wants to merge 1 commit into
Conversation
|
r? @Amanieu rustbot has assigned @Amanieu. Use Why was this reviewer chosen?The reviewer was selected based on:
|
c6c26ce to
412e171
Compare
412e171 to
f246899
Compare
|
I haven't been following this in detail, but what is the benefit of making these |
|
I don't have a concrete example of improved codegen, but we previously defined these as |
|
I remember there was some discussion around emitting a warning/error if inlining with |
|
There is no error or warning at the moment if the target features mismatch, LLVM simply won't inline it if the target features do not match. I'm not sure if this is something that is planned. I tried emitting an error at one point and was unsuccessful with that idea as it relied on knowing the ordering of the inline passes in LLVM, which could change (and has in the past). |
From the following PRs it is possible and should be sound to use
#[inline(always)]+#[target_feature(enable = "<feature_name>")].#[inline(always)] + #[target_feature(enable = "....")]#2 rust#162460