diff options
author | Eric Christopher <echristo@gmail.com> | 2019-04-17 02:12:23 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2019-04-17 02:12:23 +0000 |
commit | a86343512845c9c1fdbac865fea88aa5fce7142a (patch) | |
tree | 666fc6353de19ad8b00e56b67edd33f24104e4a7 /llvm/test/Transforms/Inline/basictest.ll | |
parent | 7f8ca6e3679b3af951cb7a4b1377edfaa3244b93 (diff) | |
download | bcm5719-llvm-a86343512845c9c1fdbac865fea88aa5fce7142a.tar.gz bcm5719-llvm-a86343512845c9c1fdbac865fea88aa5fce7142a.zip |
Temporarily Revert "Add basic loop fusion pass."
As it's causing some bot failures (and per request from kbarton).
This reverts commit r358543/ab70da07286e618016e78247e4a24fcb84077fda.
llvm-svn: 358546
Diffstat (limited to 'llvm/test/Transforms/Inline/basictest.ll')
-rw-r--r-- | llvm/test/Transforms/Inline/basictest.ll | 117 |
1 files changed, 0 insertions, 117 deletions
diff --git a/llvm/test/Transforms/Inline/basictest.ll b/llvm/test/Transforms/Inline/basictest.ll deleted file mode 100644 index f34ed084113..00000000000 --- a/llvm/test/Transforms/Inline/basictest.ll +++ /dev/null @@ -1,117 +0,0 @@ -; RUN: opt < %s -inline -sroa -S | FileCheck %s -; RUN: opt < %s -passes='cgscc(inline,function(sroa))' -S | FileCheck %s -target datalayout = "E-p:64:64:64-a0:0:8-f32:32:32-f64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-v64:64:64-v128:128:128" - -define i32 @test1f(i32 %i) { - ret i32 %i -} - -define i32 @test1(i32 %W) { - %X = call i32 @test1f(i32 7) - %Y = add i32 %X, %W - ret i32 %Y -; CHECK-LABEL: @test1( -; CHECK-NEXT: %Y = add i32 7, %W -; CHECK-NEXT: ret i32 %Y -} - - - -; rdar://7339069 - -%T = type { i32, i32 } - -; CHECK-NOT: @test2f( -define internal %T* @test2f(i1 %cond, %T* %P) { - br i1 %cond, label %T, label %F - -T: - %A = getelementptr %T, %T* %P, i32 0, i32 0 - store i32 42, i32* %A - ret %T* %P - -F: - ret %T* %P -} - -define i32 @test2(i1 %cond) { - %A = alloca %T - - %B = call %T* @test2f(i1 %cond, %T* %A) - %C = getelementptr %T, %T* %B, i32 0, i32 0 - %D = load i32, i32* %C - ret i32 %D - -; CHECK-LABEL: @test2( -; CHECK-NOT: = alloca -; CHECK: ret i32 -} - -declare void @barrier() noduplicate - -define internal i32 @f() { - call void @barrier() noduplicate - ret i32 1 -} - -define i32 @g() { - call void @barrier() noduplicate - ret i32 2 -} - -define internal i32 @h() { - call void @barrier() noduplicate - ret i32 3 -} - -define i32 @test3() { - %b = call i32 @f() - ret i32 %b -} - -; The call to @f cannot be inlined as there is another callsite -; calling @f, and @f contains a noduplicate call. -; -; The call to @g cannot be inlined as it has external linkage. -; -; The call to @h *can* be inlined. - -; CHECK-LABEL: @test( -define i32 @test() { -; CHECK: call i32 @f() - %a = call i32 @f() -; CHECK: call i32 @g() - %b = call i32 @g() -; CHECK-NOT: call i32 @h() - %c = call i32 @h() - - %d = add i32 %a, %b - %e = add i32 %d, %c - - ret i32 %e -; CHECK: } -} - -; Inliner shouldn't delete calls it can't inline, even if they're trivially dead -; CHECK-LABEL: @outer4( -define void @outer4(void ()* %inner4) { -entry: -; CHECK: call void %inner4() - call void %inner4() nounwind readnone - ret void -} - -declare void @inner5_inner() - -define void @inner5(void ()* %x) { - call void %x() nounwind readnone - ret void -} - -; Inliner shouldn't delete calls it can't inline, even if they're trivially dead and temporarily indirect -; CHECK-LABEL: @outer5( -define void @outer5() { -; CHECK: call void @inner5_inner( - call void @inner5(void ()* @inner5_inner) - ret void -} |