Skip to content

Commit

Permalink
Auto merge of #52426 - ljedrz:#28273_cleanup, r=nikomatsakis
Browse files Browse the repository at this point in the history
Enable default inlining in platform intrinsics

Since [#28273](#28273) has been fixed for quite some time, it might be a good idea to return to default inlining in platform intrinsics.
  • Loading branch information
bors committed Jul 18, 2018
2 parents cd5f5a1 + e7f63f1 commit 38168a7
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 21 deletions.
3 changes: 0 additions & 3 deletions src/etc/platform-intrinsics/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -806,9 +806,6 @@ def open(platform):
use {{Intrinsic, Type}};
use IntrinsicDef::Named;
// The default inlining settings trigger a pathological behaviour in
// LLVM, which causes makes compilation very slow. See #28273.
#[inline(never)]
pub fn find(name: &str) -> Option<Intrinsic> {{
if !name.starts_with("{0}") {{ return None }}
Some(match &name["{0}".len()..] {{'''.format(platform.platform_prefix())
Expand Down
3 changes: 0 additions & 3 deletions src/librustc_platform_intrinsics/aarch64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
use {Intrinsic, Type};
use IntrinsicDef::Named;

// The default inlining settings trigger a pathological behaviour in
// LLVM, which causes makes compilation very slow. See #28273.
#[inline(never)]
pub fn find(name: &str) -> Option<Intrinsic> {
if !name.starts_with("aarch64_v") { return None }
Some(match &name["aarch64_v".len()..] {
Expand Down
3 changes: 0 additions & 3 deletions src/librustc_platform_intrinsics/arm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
use {Intrinsic, Type};
use IntrinsicDef::Named;

// The default inlining settings trigger a pathological behaviour in
// LLVM, which causes makes compilation very slow. See #28273.
#[inline(never)]
pub fn find(name: &str) -> Option<Intrinsic> {
if !name.starts_with("arm_v") { return None }
Some(match &name["arm_v".len()..] {
Expand Down
3 changes: 0 additions & 3 deletions src/librustc_platform_intrinsics/hexagon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
use {Intrinsic, Type};
use IntrinsicDef::Named;

// The default inlining settings trigger a pathological behaviour in
// LLVM, which causes makes compilation very slow. See #28273.
#[inline(never)]
pub fn find(name: &str) -> Option<Intrinsic> {
if !name.starts_with("Q6_") { return None }
Some(match &name["Q6_".len()..] {
Expand Down
3 changes: 0 additions & 3 deletions src/librustc_platform_intrinsics/nvptx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
use {Intrinsic, Type};
use IntrinsicDef::Named;

// The default inlining settings trigger a pathological behaviour in
// LLVM, which causes makes compilation very slow. See #28273.
#[inline(never)]
pub fn find(name: &str) -> Option<Intrinsic> {
if !name.starts_with("nvptx") { return None }
Some(match &name["nvptx".len()..] {
Expand Down
3 changes: 0 additions & 3 deletions src/librustc_platform_intrinsics/powerpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
use {Intrinsic, Type};
use IntrinsicDef::Named;

// The default inlining settings trigger a pathological behaviour in
// LLVM, which causes makes compilation very slow. See #28273.
#[inline(never)]
pub fn find(name: &str) -> Option<Intrinsic> {
if !name.starts_with("powerpc") { return None }
Some(match &name["powerpc".len()..] {
Expand Down
3 changes: 0 additions & 3 deletions src/librustc_platform_intrinsics/x86.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
use {Intrinsic, Type};
use IntrinsicDef::Named;

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

0 comments on commit 38168a7

Please sign in to comment.