[PATCH] R600: Add dag combine for copy of an illegal type.

Matt Arsenault Matthew.Arsenault at amd.com
Sun Jun 29 11:22:33 PDT 2014


This helps avoid redundant instructions to unpack, and repack
the vectors. Ideally we could recognize that pattern and eliminate
it. Currently v4i8 and other small element type vectors are scalarized,
so this has the added bonus of avoiding that. This helps some image benchmarks.

http://reviews.llvm.org/D4344

Files:
  lib/Target/R600/AMDGPUISelLowering.cpp
  lib/Target/R600/AMDGPUISelLowering.h
  test/CodeGen/R600/copy-illegal-type.ll
  test/CodeGen/R600/indirect-private-64.ll
  test/CodeGen/R600/load.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4344.10966.patch
Type: text/x-patch
Size: 11198 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140629/c0167b4c/attachment.bin>


More information about the llvm-commits mailing list