Skip to content

Commit e7f63f1

Browse files
committed
Enable default inlining in platform intrinsics
1 parent 88b025b commit e7f63f1

File tree

7 files changed

+0
-21
lines changed

7 files changed

+0
-21
lines changed

src/etc/platform-intrinsics/generator.py

-3
Original file line numberDiff line numberDiff line change
@@ -806,9 +806,6 @@ def open(platform):
806806
use {{Intrinsic, Type}};
807807
use IntrinsicDef::Named;
808808
809-
// The default inlining settings trigger a pathological behaviour in
810-
// LLVM, which causes makes compilation very slow. See #28273.
811-
#[inline(never)]
812809
pub fn find(name: &str) -> Option<Intrinsic> {{
813810
if !name.starts_with("{0}") {{ return None }}
814811
Some(match &name["{0}".len()..] {{'''.format(platform.platform_prefix())

src/librustc_platform_intrinsics/aarch64.rs

-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
use {Intrinsic, Type};
1717
use IntrinsicDef::Named;
1818

19-
// The default inlining settings trigger a pathological behaviour in
20-
// LLVM, which causes makes compilation very slow. See #28273.
21-
#[inline(never)]
2219
pub fn find(name: &str) -> Option<Intrinsic> {
2320
if !name.starts_with("aarch64_v") { return None }
2421
Some(match &name["aarch64_v".len()..] {

src/librustc_platform_intrinsics/arm.rs

-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
use {Intrinsic, Type};
1717
use IntrinsicDef::Named;
1818

19-
// The default inlining settings trigger a pathological behaviour in
20-
// LLVM, which causes makes compilation very slow. See #28273.
21-
#[inline(never)]
2219
pub fn find(name: &str) -> Option<Intrinsic> {
2320
if !name.starts_with("arm_v") { return None }
2421
Some(match &name["arm_v".len()..] {

src/librustc_platform_intrinsics/hexagon.rs

-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
use {Intrinsic, Type};
1717
use IntrinsicDef::Named;
1818

19-
// The default inlining settings trigger a pathological behaviour in
20-
// LLVM, which causes makes compilation very slow. See #28273.
21-
#[inline(never)]
2219
pub fn find(name: &str) -> Option<Intrinsic> {
2320
if !name.starts_with("Q6_") { return None }
2421
Some(match &name["Q6_".len()..] {

src/librustc_platform_intrinsics/nvptx.rs

-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
use {Intrinsic, Type};
1717
use IntrinsicDef::Named;
1818

19-
// The default inlining settings trigger a pathological behaviour in
20-
// LLVM, which causes makes compilation very slow. See #28273.
21-
#[inline(never)]
2219
pub fn find(name: &str) -> Option<Intrinsic> {
2320
if !name.starts_with("nvptx") { return None }
2421
Some(match &name["nvptx".len()..] {

src/librustc_platform_intrinsics/powerpc.rs

-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
use {Intrinsic, Type};
1717
use IntrinsicDef::Named;
1818

19-
// The default inlining settings trigger a pathological behaviour in
20-
// LLVM, which causes makes compilation very slow. See #28273.
21-
#[inline(never)]
2219
pub fn find(name: &str) -> Option<Intrinsic> {
2320
if !name.starts_with("powerpc") { return None }
2421
Some(match &name["powerpc".len()..] {

src/librustc_platform_intrinsics/x86.rs

-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
use {Intrinsic, Type};
1717
use IntrinsicDef::Named;
1818

19-
// The default inlining settings trigger a pathological behaviour in
20-
// LLVM, which causes makes compilation very slow. See #28273.
21-
#[inline(never)]
2219
pub fn find(name: &str) -> Option<Intrinsic> {
2320
if !name.starts_with("x86") { return None }
2421
Some(match &name["x86".len()..] {

0 commit comments

Comments
 (0)