]> granicus.if.org Git - llvm/commit
GlobalISel: Try to widen merges with other merges
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 1 Jul 2019 19:36:10 +0000 (19:36 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 1 Jul 2019 19:36:10 +0000 (19:36 +0000)
commit689a3451a4d0b8ff8fb81f9d7cb71c5b95cb9801
tree103562b9698ab28750e7b3f034b2db872b0e7116
parentd3f58a990dba23a5ae58340aa8f405e48b80ce2d
GlobalISel: Try to widen merges with other merges

If the requested source type an be used as a merge source type, create
a merge of merges. This avoids creating large, illegal extensions and
bit-ops directly to the result type.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@364841 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/GlobalISel/LegalizerHelper.cpp
test/CodeGen/AMDGPU/GlobalISel/legalize-merge-values.mir