GlobalISel: Fix narrowing of G_CTPOP
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 7 Feb 2020 03:29:23 +0000 (22:29 -0500)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 7 Feb 2020 14:58:00 +0000 (06:58 -0800)
commit3b198518ad540f789f45490e896565d4f0862c16
treea9c5aefb9724fee63d3a8fef7cacb3ced5d6dc51
parent8de2dad9e0d729663f83d80f9a9e9b98ef41992e
GlobalISel: Fix narrowing of G_CTPOP

The result type is separate from the source type. Tests will be
included in a future AMDGPU patch which uses this from
RegBankSelect/applyMappingImpl.
llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
llvm/lib/Target/Mips/MipsLegalizerInfo.cpp