[PATCH] D81378: GlobalISel: Handle more cases in getGCDType
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 8 04:52:19 PDT 2020
arsenm created this revision.
arsenm added reviewers: paquette, dsanders, aemerson, aditya_nandakumar, volkan.
Herald added subscribers: hiraditya, rovka, wdng.
Herald added a project: LLVM.
arsenm added a parent revision: D81376: GlobalISel: Add unit tests for some utils functions.
Try harder to find a canonical unmerge type when trying to cover the
desired target type. Handle finding a compatible unmerge type for two
vectors with different element types. This will return the largest
multiple of the source vector element that will evenly divide the
target vector type.
Also make the handling mixing scalars and vectors, and prefer the
source element type as the unmerge target type.
https://reviews.llvm.org/D81378
Files:
llvm/include/llvm/CodeGen/GlobalISel/Utils.h
llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
llvm/lib/CodeGen/GlobalISel/Utils.cpp
llvm/unittests/CodeGen/GlobalISel/GISelUtilsTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81378.269177.patch
Type: text/x-patch
Size: 8970 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200608/1f61fecc/attachment-0001.bin>
More information about the llvm-commits
mailing list