[PATCH] D151751: [AMDGPU][LoadStoreVectorizer] Pre-commit test for addrspace 7 crash

Krzysztof Drewniak via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 30 14:15:34 PDT 2023


This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG087b67cc0677: [AMDGPU][LoadStoreVectorizer] Pre-commit test for addrspace 7 crash (authored by krzysz00).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D151751/new/

https://reviews.llvm.org/D151751

Files:
  llvm/test/Transforms/LoadStoreVectorizer/AMDGPU/addrspace-7.ll


Index: llvm/test/Transforms/LoadStoreVectorizer/AMDGPU/addrspace-7.ll
===================================================================
--- /dev/null
+++ llvm/test/Transforms/LoadStoreVectorizer/AMDGPU/addrspace-7.ll
@@ -0,0 +1,14 @@
+; REQUIRES: asserts
+; RUN: not --crash opt -mtriple=amdgcn-amd-amdhsa -passes=load-store-vectorizer -S -o - %s
+; RUN: not --crash opt -mtriple=amdgcn-amd-amdhsa -aa-pipeline=basic-aa -passes='function(load-store-vectorizer)' -S -o - %s
+
+target datalayout = "e-p:64:64-p1:64:64-p2:32:32-p3:32:32-p4:64:64-p5:32:32-p6:32:32-p7:160:256:256:32-p8:128:128-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64-S32-A5"
+
+define { float, float } @f() {
+bb:
+  %l1 = load float, ptr addrspace(7) null
+  %l2 = load float, ptr addrspace(7) getelementptr (i8, ptr addrspace(7) null, i64 24)
+  %iv1 = insertvalue { float, float } zeroinitializer, float %l1, 0
+  %iv2 = insertvalue { float, float } %iv1, float %l2, 1
+  ret { float, float } %iv2
+}


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151751.526790.patch
Type: text/x-patch
Size: 1028 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230530/48649da8/attachment.bin>


More information about the llvm-commits mailing list