[PATCH] Add target hook for whether it is profitable to reduce load widths

Matt Arsenault Matthew.Arsenault at amd.com
Mon Nov 24 18:10:36 PST 2014


Add an option to disable optimization to shrink truncated larger type
loads to smaller type loads. On SI this prevents using scalar load
instructions in some cases, since there are no scalar extloads.

http://reviews.llvm.org/D6398

Files:
  include/llvm/Target/TargetLowering.h
  lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  lib/Target/R600/AMDGPUISelLowering.cpp
  lib/Target/R600/AMDGPUISelLowering.h
  test/CodeGen/R600/no-shrink-extloads.ll
  test/CodeGen/R600/store.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6398.16592.patch
Type: text/x-patch
Size: 13821 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141125/f25edb81/attachment.bin>


More information about the llvm-commits mailing list