summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/ConstantHoisting/X86/phi.ll
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2019-04-17 02:12:23 +0000
committerEric Christopher <echristo@gmail.com>2019-04-17 02:12:23 +0000
commita86343512845c9c1fdbac865fea88aa5fce7142a (patch)
tree666fc6353de19ad8b00e56b67edd33f24104e4a7 /llvm/test/Transforms/ConstantHoisting/X86/phi.ll
parent7f8ca6e3679b3af951cb7a4b1377edfaa3244b93 (diff)
downloadbcm5719-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/ConstantHoisting/X86/phi.ll')
-rw-r--r--llvm/test/Transforms/ConstantHoisting/X86/phi.ll117
1 files changed, 0 insertions, 117 deletions
diff --git a/llvm/test/Transforms/ConstantHoisting/X86/phi.ll b/llvm/test/Transforms/ConstantHoisting/X86/phi.ll
deleted file mode 100644
index f9fba3ee26a..00000000000
--- a/llvm/test/Transforms/ConstantHoisting/X86/phi.ll
+++ /dev/null
@@ -1,117 +0,0 @@
-; RUN: opt -S -consthoist < %s | FileCheck %s
-; RUN: opt -S -passes=consthoist < %s | FileCheck %s
-
-target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
-target triple = "x86_64-apple-macosx10.9.0"
-
-; PR18626
-define i8* @test1(i1 %cmp, i64* %tmp) {
-entry:
- call void @foo(i8* inttoptr (i64 68719476735 to i8*))
- br i1 %cmp, label %if.end, label %return
-
-if.end: ; preds = %bb1
- call void @foo(i8* inttoptr (i64 68719476736 to i8*))
- br label %return
-
-return:
- %retval.0 = phi i8* [ null, %entry ], [ inttoptr (i64 68719476736 to i8*), %if.end ]
- store i64 1172321806, i64* %tmp
- ret i8* %retval.0
-
-; CHECK-LABEL: @test1
-; CHECK: if.end:
-; CHECK: %2 = inttoptr i64 %const to i8*
-; CHECK-NEXT: br
-; CHECK: return:
-; CHECK-NEXT: %retval.0 = phi i8* [ null, %entry ], [ %2, %if.end ]
-}
-
-define void @test2(i1 %cmp, i64** %tmp) {
-entry:
- call void @foo(i8* inttoptr (i64 68719476736 to i8*))
- br i1 %cmp, label %if.end, label %return
-
-if.end: ; preds = %bb1
- call void @foo(i8* inttoptr (i64 68719476736 to i8*))
- br label %return
-
-return:
- store i64* inttoptr (i64 68719476735 to i64*), i64** %tmp
- ret void
-
-; CHECK-LABEL: @test2
-; CHECK: return:
-; CHECK-NEXT: %const_mat = add i64 %const, -1
-; CHECK-NEXT: inttoptr i64 %const_mat to i64*
-}
-
-declare void @foo(i8*)
-
-; PR18768
-define i32 @test3(i1 %c) {
-entry:
- br i1 %c, label %if.then, label %if.end3
-
-if.then: ; preds = %entry
- br label %if.end3
-
-if.end3: ; preds = %if.then, %entry
- %d.0 = phi i32* [ inttoptr (i64 985162435264511 to i32*), %entry ], [ null, %if.then ]
- %cmp4 = icmp eq i32* %d.0, inttoptr (i64 985162435264511 to i32*)
- %cmp6 = icmp eq i32* %d.0, inttoptr (i64 985162418487296 to i32*)
- %or = or i1 %cmp4, %cmp6
- br i1 %or, label %if.then8, label %if.end9
-
-if.then8: ; preds = %if.end3
- ret i32 1
-
-if.end9: ; preds = %if.then8, %if.end3
- ret i32 undef
-}
-
-; <rdar://problem/16394449>
-define i64 @switch_test1(i64 %a) {
-; CHECK-LABEL: @switch_test1
-; CHECK: %0 = phi i64 [ %const, %case2 ], [ %const_mat, %Entry ], [ %const_mat, %Entry ]
-Entry:
- %sel = add i64 %a, 4519019440
- switch i64 %sel, label %fail [
- i64 462, label %continuation
- i64 449, label %case2
- i64 443, label %continuation
- ]
-
-case2:
- br label %continuation
-
-continuation:
- %0 = phi i64 [ 4519019440, %case2 ], [ 4519019460, %Entry ], [ 4519019460, %Entry ]
- ret i64 0;
-
-fail:
- ret i64 -1;
-}
-
-define i64 @switch_test2(i64 %a) {
-; CHECK-LABEL: @switch_test2
-; CHECK: %2 = phi i64* [ %1, %case2 ], [ %0, %Entry ], [ %0, %Entry ]
-Entry:
- %sel = add i64 %a, 4519019440
- switch i64 %sel, label %fail [
- i64 462, label %continuation
- i64 449, label %case2
- i64 443, label %continuation
- ]
-
-case2:
- br label %continuation
-
-continuation:
- %0 = phi i64* [ inttoptr(i64 4519019440 to i64*), %case2 ], [ inttoptr(i64 4519019460 to i64*), %Entry ], [ inttoptr(i64 4519019460 to i64*), %Entry ]
- ret i64 0;
-
-fail:
- ret i64 -1;
-}
-
OpenPOWER on IntegriCloud