[PATCH] D65473: GlobalISel: Avoid widening unmerge with matching source type
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 30 13:01:59 PDT 2019
arsenm created this revision.
arsenm added reviewers: aemerson, paquette, aditya_nandakumar.
Herald added subscribers: Petar.Avramovic, volkan, tpr, rovka, nhaehnle, wdng, jvesely.
If the target result type matches the original source, don't widen the
source register.
Also continue converging AMDGPU merge/unmerge legality rules towards
what they should be.
https://reviews.llvm.org/D65473
Files:
lib/CodeGen/GlobalISel/LegalizerHelper.cpp
lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
test/CodeGen/AMDGPU/GlobalISel/artifact-combiner-unmerge-values.mir
test/CodeGen/AMDGPU/GlobalISel/legalize-merge-values.mir
test/CodeGen/AMDGPU/GlobalISel/legalize-unmerge-values.mir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65473.212416.patch
Type: text/x-patch
Size: 134739 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190730/f17b63df/attachment.bin>
More information about the llvm-commits
mailing list