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/InstCombine/non-integral-pointers.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/InstCombine/non-integral-pointers.ll')
-rw-r--r-- | llvm/test/Transforms/InstCombine/non-integral-pointers.ll | 92 |
1 files changed, 0 insertions, 92 deletions
diff --git a/llvm/test/Transforms/InstCombine/non-integral-pointers.ll b/llvm/test/Transforms/InstCombine/non-integral-pointers.ll deleted file mode 100644 index 3b4538985bd..00000000000 --- a/llvm/test/Transforms/InstCombine/non-integral-pointers.ll +++ /dev/null @@ -1,92 +0,0 @@ -; RUN: opt -instcombine -S < %s | FileCheck %s - -target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128-ni:4" -target triple = "x86_64-unknown-linux-gnu" - -define i8 addrspace(4)* @f_0() { -; CHECK-LABEL: @f_0( -; CHECK: ret i8 addrspace(4)* getelementptr (i8, i8 addrspace(4)* null, i64 50) - %result = getelementptr i8, i8 addrspace(4)* null, i64 50 - ret i8 addrspace(4)* %result -} - -define i8 addrspace(3)* @f_1() { -; inttoptr is fine here since addrspace(3) is integral. - -; CHECK-LABEL: @f_1( -; CHECK: ret i8 addrspace(3)* inttoptr (i64 50 to i8 addrspace(3)*) - %result = getelementptr i8, i8 addrspace(3)* null, i64 50 - ret i8 addrspace(3)* %result -} - -define void @f_2(i8 addrspace(4)** %ptr0, i8 addrspace(4)** %ptr1) { -; It is not okay to convert the load/store pair to load and store -; integers, since pointers in address space 4 are non-integral. - -; CHECK-LABEL: @f_2( -entry: -; CHECK: %val = load i8 addrspace(4)*, i8 addrspace(4)** %ptr0, align 8 -; CHECK: store i8 addrspace(4)* %val, i8 addrspace(4)** %ptr1, align 8 -; CHECK-NOT: load i64 -; CHECK-NOT: store i64 - %val = load i8 addrspace(4)*, i8 addrspace(4)** %ptr0 - store i8 addrspace(4)* %val, i8 addrspace(4)** %ptr1 - ret void -} - -define void @f_3(i8 addrspace(3)** %ptr0, i8 addrspace(3)** %ptr1) { -; It *is* okay to convert the load/store pair to load and store -; integers, since pointers in address space 3 are integral. - -; CHECK-LABEL: @f_3( -entry: -; CHECK: load i64 -; CHECK: store i64 - %val = load i8 addrspace(3)*, i8 addrspace(3)** %ptr0 - store i8 addrspace(3)* %val, i8 addrspace(3)** %ptr1 - ret void -} - -define i64 @g(i8 addrspace(4)** %gp) { - ; CHECK-LABEL: @g( - ; CHECK: load - %.pre = load i8 addrspace(4)*, i8 addrspace(4)** %gp, align 8 - %v74 = call i8 addrspace(4)* @alloc() - %v75 = addrspacecast i8 addrspace(4)* %v74 to i8* - %v76 = bitcast i8* %v75 to i8 addrspace(4)** - %v77 = getelementptr i8 addrspace(4)*, i8 addrspace(4)** %v76, i64 -1 - ; CHECK: store - store i8 addrspace(4)* %.pre, i8 addrspace(4)** %v77, align 8 - %v80 = bitcast i8 addrspace(4)** %v77 to i64* - ; CHECK: load - ; CHECK-NOT: ptrtoint - %v81 = load i64, i64* %v80, align 8 - ret i64 %v81 -} - -define i64 @g2(i8* addrspace(4)* %gp) { - ; CHECK-LABEL: @g2( - ; CHECK: load - %.pre = load i8*, i8* addrspace(4)* %gp, align 8 - %v74 = call i8 addrspace(4)* @alloc() - %v76 = bitcast i8 addrspace(4)* %v74 to i8* addrspace(4)* - %v77 = getelementptr i8*, i8* addrspace(4)* %v76, i64 -1 - ; CHECK: store - store i8* %.pre, i8* addrspace(4)* %v77, align 8 - %v80 = bitcast i8* addrspace(4)* %v77 to i64 addrspace(4)* - ; CHECK-NOT: store - %v81 = load i64, i64 addrspace(4)* %v80, align 8 - ret i64 %v81 -} - -declare i8 addrspace(4)* @alloc() - -define i64 @f_4(i8 addrspace(4)* %v0) { - ; CHECK-LABEL: @f_4( - ; CHECK-NOT: ptrtoint - %v5 = bitcast i64 (i64)* @f_5 to i64 (i8 addrspace(4)*)* - %v6 = call i64 %v5(i8 addrspace(4)* %v0) - ret i64 %v6 -} - -declare i64 @f_5(i64) |