summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp1
-rw-r--r--llvm/test/CodeGen/AMDGPU/early-inline.ll21
2 files changed, 0 insertions, 22 deletions
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp b/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
index 33ba0883e30..914217af73b 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
@@ -253,7 +253,6 @@ void AMDGPUTargetMachine::adjustPassManager(PassManagerBuilder &Builder) {
}));
PM.add(createGlobalDCEPass());
}
- PM.add(createAMDGPUAlwaysInlinePass());
});
}
diff --git a/llvm/test/CodeGen/AMDGPU/early-inline.ll b/llvm/test/CodeGen/AMDGPU/early-inline.ll
deleted file mode 100644
index dd526da354e..00000000000
--- a/llvm/test/CodeGen/AMDGPU/early-inline.ll
+++ /dev/null
@@ -1,21 +0,0 @@
-; RUN: opt -mtriple=amdgcn-- -O1 -S -inline-threshold=1 %s | FileCheck %s
-
-define i32 @callee(i32 %x) {
-entry:
- %mul1 = mul i32 %x, %x
- %mul2 = mul i32 %mul1, %x
- %mul3 = mul i32 %mul1, %mul2
- %mul4 = mul i32 %mul3, %mul2
- %mul5 = mul i32 %mul4, %mul3
- ret i32 %mul5
-}
-
-; CHECK-LABEL: @caller
-; CHECK: mul i32
-; CHECK-NOT: call i32
-
-define i32 @caller(i32 %x) {
-entry:
- %res = call i32 @callee(i32 %x)
- ret i32 %res
-}
OpenPOWER on IntegriCloud