]> granicus.if.org Git - llvm/commitdiff
Revert "[AMDGPU] Run always inliner early in opt"
authorKonstantin Zhuravlyov <kzhuravl_dev@outlook.com>
Mon, 20 Mar 2017 09:26:08 +0000 (09:26 +0000)
committerKonstantin Zhuravlyov <kzhuravl_dev@outlook.com>
Mon, 20 Mar 2017 09:26:08 +0000 (09:26 +0000)
This reverts commit r297958, it breaks device-libs build.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298239 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
test/CodeGen/AMDGPU/early-inline.ll [deleted file]

index 33ba0883e30c788164586fe450c35dca4f4f879c..914217af73b0b9f0f4d9acf95b4bbb6a1db7a5b2 100644 (file)
@@ -253,7 +253,6 @@ void AMDGPUTargetMachine::adjustPassManager(PassManagerBuilder &Builder) {
         }));
         PM.add(createGlobalDCEPass());
       }
-      PM.add(createAMDGPUAlwaysInlinePass());
   });
 }
 
diff --git a/test/CodeGen/AMDGPU/early-inline.ll b/test/CodeGen/AMDGPU/early-inline.ll
deleted file mode 100644 (file)
index dd526da..0000000
+++ /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
-}