[llvm] r298239 - Revert "[AMDGPU] Run always inliner early in opt"

Konstantin Zhuravlyov via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 20 02:26:08 PDT 2017


Author: kzhuravl
Date: Mon Mar 20 04:26:08 2017
New Revision: 298239

URL: http://llvm.org/viewvc/llvm-project?rev=298239&view=rev
Log:
Revert "[AMDGPU] Run always inliner early in opt"

This reverts commit r297958, it breaks device-libs build.

Removed:
    llvm/trunk/test/CodeGen/AMDGPU/early-inline.ll
Modified:
    llvm/trunk/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp

Modified: llvm/trunk/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp?rev=298239&r1=298238&r2=298239&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp Mon Mar 20 04:26:08 2017
@@ -253,7 +253,6 @@ void AMDGPUTargetMachine::adjustPassMana
         }));
         PM.add(createGlobalDCEPass());
       }
-      PM.add(createAMDGPUAlwaysInlinePass());
   });
 }
 

Removed: llvm/trunk/test/CodeGen/AMDGPU/early-inline.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/AMDGPU/early-inline.ll?rev=298238&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/AMDGPU/early-inline.ll (original)
+++ llvm/trunk/test/CodeGen/AMDGPU/early-inline.ll (removed)
@@ -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
-}




More information about the llvm-commits mailing list