summaryrefslogtreecommitdiff
path: root/test/Other
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2012-11-01 08:07:29 +0000
committerChandler Carruth <chandlerc@gmail.com>2012-11-01 08:07:29 +0000
commitece6c6bb6329748b92403c06ac87f45c43485911 (patch)
tree6db9d3586fbfc4b362af63c5d5b5a5498fb569e0 /test/Other
parent86ccc55c82651f91fd6a312c5f6a4b511bcd1aec (diff)
downloadllvm-ece6c6bb6329748b92403c06ac87f45c43485911.tar.gz
llvm-ece6c6bb6329748b92403c06ac87f45c43485911.tar.bz2
llvm-ece6c6bb6329748b92403c06ac87f45c43485911.tar.xz
Revert the series of commits starting with r166578 which introduced the
getIntPtrType support for multiple address spaces via a pointer type, and also introduced a crasher bug in the constant folder reported in PR14233. These commits also contained several problems that should really be addressed before they are re-committed. I have avoided reverting various cleanups to the DataLayout APIs that are reasonable to have moving forward in order to reduce the amount of churn, and minimize the number of commits that were reverted. I've also manually updated merge conflicts and manually arranged for the getIntPtrType function to stay in DataLayout and to be defined in a plausible way after this revert. Thanks to Duncan for working through this exact strategy with me, and Nick Lewycky for tracking down the really annoying crasher this triggered. (Test case to follow in its own commit.) After discussing with Duncan extensively, and based on a note from Micah, I'm going to continue to back out some more of the more problematic patches in this series in order to ensure we go into the LLVM 3.2 branch with a reasonable story here. I'll send a note to llvmdev explaining what's going on and why. Summary of reverted revisions: r166634: Fix a compiler warning with an unused variable. r166607: Add some cleanup to the DataLayout changes requested by Chandler. r166596: Revert "Back out r166591, not sure why this made it through since I cancelled the command. Bleh, sorry about this! r166591: Delete a directory that wasn't supposed to be checked in yet. r166578: Add in support for getIntPtrType to get the pointer type based on the address space. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167221 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Other')
-rw-r--r--test/Other/multi-pointer-size.ll43
1 files changed, 0 insertions, 43 deletions
diff --git a/test/Other/multi-pointer-size.ll b/test/Other/multi-pointer-size.ll
deleted file mode 100644
index 95fa54b8f2..0000000000
--- a/test/Other/multi-pointer-size.ll
+++ /dev/null
@@ -1,43 +0,0 @@
-; RUN: opt -instcombine %s | llvm-dis | FileCheck %s
-target datalayout = "e-p:32:32:32-p1:64:64:64-p2:8:8:8-p3:16:16:16--p4:96:96:96-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:32"
-
-define i32 @test_as0(i32 addrspace(0)* %A) {
-entry:
-; CHECK: %arrayidx = getelementptr i32* %A, i32 1
- %arrayidx = getelementptr i32 addrspace(0)* %A, i64 1
- %y = load i32 addrspace(0)* %arrayidx, align 4
- ret i32 %y
-}
-
-define i32 @test_as1(i32 addrspace(1)* %A) {
-entry:
-; CHECK: %arrayidx = getelementptr i32 addrspace(1)* %A, i64 1
- %arrayidx = getelementptr i32 addrspace(1)* %A, i32 1
- %y = load i32 addrspace(1)* %arrayidx, align 4
- ret i32 %y
-}
-
-define i32 @test_as2(i32 addrspace(2)* %A) {
-entry:
-; CHECK: %arrayidx = getelementptr i32 addrspace(2)* %A, i8 1
- %arrayidx = getelementptr i32 addrspace(2)* %A, i32 1
- %y = load i32 addrspace(2)* %arrayidx, align 4
- ret i32 %y
-}
-
-define i32 @test_as3(i32 addrspace(3)* %A) {
-entry:
-; CHECK: %arrayidx = getelementptr i32 addrspace(3)* %A, i16 1
- %arrayidx = getelementptr i32 addrspace(3)* %A, i32 1
- %y = load i32 addrspace(3)* %arrayidx, align 4
- ret i32 %y
-}
-
-define i32 @test_as4(i32 addrspace(4)* %A) {
-entry:
-; CHECK: %arrayidx = getelementptr i32 addrspace(4)* %A, i96 1
- %arrayidx = getelementptr i32 addrspace(4)* %A, i32 1
- %y = load i32 addrspace(4)* %arrayidx, align 4
- ret i32 %y
-}
-