[PATCH] Make SROA handle addrspacecast

Xuetian Weng xweng at google.com
Tue Jun 16 12:21:28 PDT 2015


Hi arsenm, chandlerc,

This is basically D4501 from Matt with fixed testcase. In GPU related
world addrspacecast instructions are commonly used to avoid overhead
when access memory with generic load and store. SROA pass currently does
not take addrspaceCast into account. This patch uses the same way that SROA
handles bitcast to process addrspacecast.

http://reviews.llvm.org/D10482

Files:
  include/llvm/Analysis/PtrUseVisitor.h
  lib/Transforms/Scalar/SROA.cpp
  test/Transforms/SROA/basictest.ll

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10482.27778.patch
Type: text/x-patch
Size: 4398 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150616/3d7d10aa/attachment.bin>


More information about the llvm-commits mailing list