Add target hook for whether it is profitable to reduce load widths
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 12 Dec 2014 00:00:24 +0000 (00:00 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 12 Dec 2014 00:00:24 +0000 (00:00 +0000)
commit6e6318f148c2293673d94b040e298354360d6a35
tree28e9809ecd76e3ba8ea4e95590cf03739ecf4ea7
parent6f44989d396d19fd65ca816c2683c9ac7f1a832c
Add target hook for whether it is profitable to reduce load widths

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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224084 91177308-0d34-0410-b5e6-96231b3b80d8
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 [new file with mode: 0644]
test/CodeGen/R600/store.ll