GlobalISel: Combine unmerge of merge with intermediate cast
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 9 Jul 2019 22:19:13 +0000 (22:19 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 9 Jul 2019 22:19:13 +0000 (22:19 +0000)
commit14a4495155c957d7690184ded94f6c42981991ff
tree9ea4488351af3abd6d4babe72b8afa7ca59fcd4b
parentd6c15b661ab0aabb00f1219ce4af7136938e67e2
GlobalISel: Combine unmerge of merge with intermediate cast

This eliminates some illegal intermediate vectors when operations are
scalarized.

llvm-svn: 365566
llvm/include/llvm/CodeGen/GlobalISel/LegalizationArtifactCombiner.h
llvm/include/llvm/CodeGen/GlobalISel/Utils.h
llvm/lib/CodeGen/GlobalISel/Utils.cpp
llvm/test/CodeGen/AMDGPU/GlobalISel/artifact-combiner-unmerge-values.mir [new file with mode: 0644]