]> granicus.if.org Git - llvm/commit
GlobalISel: Fix artifact combiner constant legality checks for vectors
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 7 Feb 2019 18:58:28 +0000 (18:58 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 7 Feb 2019 18:58:28 +0000 (18:58 +0000)
commitc9e555791dbe9e658fbdf4e789e1de894d4ec036
tree9c001df844b5359de0760374ae78605e2caa54a5
parent7c32994026ee29d3b54e5b10a4be17d8cb8137d2
GlobalISel: Fix artifact combiner constant legality checks for vectors

Since G_CONSTANT is illegal for vectors, this needs to check
what buildConstant will produce for a splat vector.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@353449 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/GlobalISel/LegalizationArtifactCombiner.h
test/CodeGen/AMDGPU/GlobalISel/artifact-combiner-anyext.mir [new file with mode: 0644]
test/CodeGen/AMDGPU/GlobalISel/artifact-combiner-sext.mir [new file with mode: 0644]
test/CodeGen/AMDGPU/GlobalISel/artifact-combiner-zext.mir [new file with mode: 0644]
test/CodeGen/AMDGPU/GlobalISel/legalize-extract-vector-elt.mir