[PATCH] D84331: GlobalISel: Add scalarSameSizeAs LegalizeRule
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 22 08:48:01 PDT 2020
arsenm created this revision.
arsenm added reviewers: aemerson, aditya_nandakumar, paquette, dsanders.
Herald added subscribers: kerbowa, hiraditya, arichardson, rovka, nhaehnle, wdng, jvesely.
Herald added a project: LLVM.
Widen or narrow a type to a type with the same scalar size as
another. This can be used to force G_PTR_ADD/G_PTRMASK's scalar
operand to match the bitwidth of the pointer type. Use this to
disallow narrower types for G_PTRMASK.
https://reviews.llvm.org/D84331
Files:
llvm/include/llvm/CodeGen/GlobalISel/LegalizerInfo.h
llvm/lib/CodeGen/GlobalISel/LegalizeMutations.cpp
llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
llvm/test/CodeGen/AMDGPU/GlobalISel/inst-select-ptrmask.mir
llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-ptrmask.mir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84331.279838.patch
Type: text/x-patch
Size: 11346 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200722/08b4a741/attachment.bin>
More information about the llvm-commits
mailing list