[PATCH] D39758: CodeGen: Fix pointer info in SplitVecOp_EXTRACT_VECTOR_ELT

Yaxun Liu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 7 13:51:56 PST 2017


yaxunl created this revision.
Herald added subscribers: nhaehnle, wdng.

SplitVecOp_EXTRACT_VECTOR_ELT uses dummy pointer info to generate SDLoad, which
causes isel failure on amdgcn target with amdgiz environment since amdgcn backend
needs correct address space to lower SDLoad.

This patch fixes that.


https://reviews.llvm.org/D39758

Files:
  lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
  test/CodeGen/AMDGPU/extract_vector_elt-f16.ll
  test/CodeGen/AMDGPU/extract_vector_elt-f64.ll
  test/CodeGen/AMDGPU/extract_vector_elt-i16.ll
  test/CodeGen/AMDGPU/extract_vector_elt-i64.ll
  test/CodeGen/AMDGPU/extract_vector_elt-i8.ll
  test/CodeGen/AMDGPU/scratch-simple.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39758.121974.patch
Type: text/x-patch
Size: 7171 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171107/ba795626/attachment.bin>


More information about the llvm-commits mailing list