diff options
| author | Yaxun Liu <Yaxun.Liu@amd.com> | 2018-02-02 16:07:16 +0000 |
|---|---|---|
| committer | Yaxun Liu <Yaxun.Liu@amd.com> | 2018-02-02 16:07:16 +0000 |
| commit | 2a22c5deff3830d50fbc3f877ab30af9f42792f9 (patch) | |
| tree | 25b57e509727b39c0a06715cccf5dbab3e1ea67e /llvm/test/Transforms/LoopStrengthReduce | |
| parent | a43e9653bbb388d7fe3d58541bdf13612705cc8f (diff) | |
| download | bcm5719-llvm-2a22c5deff3830d50fbc3f877ab30af9f42792f9.tar.gz bcm5719-llvm-2a22c5deff3830d50fbc3f877ab30af9f42792f9.zip | |
[AMDGPU] Switch to the new addr space mapping by default
This requires corresponding clang change.
Differential Revision: https://reviews.llvm.org/D40955
llvm-svn: 324101
Diffstat (limited to 'llvm/test/Transforms/LoopStrengthReduce')
| -rw-r--r-- | llvm/test/Transforms/LoopStrengthReduce/AMDGPU/different-addrspace-crash.ll | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/test/Transforms/LoopStrengthReduce/AMDGPU/different-addrspace-crash.ll b/llvm/test/Transforms/LoopStrengthReduce/AMDGPU/different-addrspace-crash.ll index 02c3c05e794..d558aa24304 100644 --- a/llvm/test/Transforms/LoopStrengthReduce/AMDGPU/different-addrspace-crash.ll +++ b/llvm/test/Transforms/LoopStrengthReduce/AMDGPU/different-addrspace-crash.ll @@ -1,6 +1,5 @@ ; RUN: llc < %s | FileCheck %s -target datalayout = "e-p:32:32-p1:64:64-p2:64:64-p3:32:32-p4:64:64-p5:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64" target triple = "amdgcn--" ; We need to compile this for a target where we have different address spaces, @@ -21,9 +20,9 @@ entry: loop: %idx0 = phi i32 [ %next_idx0, %loop ], [ 0, %entry ] - %0 = getelementptr inbounds i32, i32* null, i32 %idx0 + %0 = getelementptr inbounds i32, i32 addrspace(5)* null, i32 %idx0 %1 = getelementptr inbounds i32, i32 addrspace(1)* null, i32 %idx0 - store i32 1, i32* %0 + store i32 1, i32 addrspace(5)* %0 store i32 7, i32 addrspace(1)* %1 %next_idx0 = add nuw nsw i32 %idx0, 1 br label %loop |

