R600: Check if a sextload should be used for parameter loads.
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 11 Apr 2014 20:59:54 +0000 (20:59 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 11 Apr 2014 20:59:54 +0000 (20:59 +0000)
commit4aee5942c3e8f590ad71dce9588ce2f400628ba4
tree8daed6ae211cd3a7fc5f7c4b9f4195dc5916c78f
parenta02c32f31dd9da7bd1c5c72858c40568a3bd45df
R600: Check if a sextload should be used for parameter loads.

Through some oddity where truncate (sextload x) isn't folded into
an anyextload for vectors, the sextload remains if the
vector isn't immediately scalarized. This keeps the expected
zextload instructions in the kernel-args test when small type
vectors aren't scalarized.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206070 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/R600/R600ISelLowering.cpp
lib/Target/R600/SIISelLowering.cpp
lib/Target/R600/SIISelLowering.h