[GlobalISel] Support vectors in LegalizerHelper::narrowScalarMul
authorJay Foad <jay.foad@amd.com>
Fri, 1 Oct 2021 12:30:42 +0000 (13:30 +0100)
committerJay Foad <jay.foad@amd.com>
Mon, 4 Oct 2021 18:33:38 +0000 (19:33 +0100)
commit90da0b9a5a5322f5a48574274421357d7b22f2cb
tree7201e06a54956714c708922b4d4ac9296df20b60
parent6a2a84c253bc9ae55b8d0803e28356c056036053
[GlobalISel] Support vectors in LegalizerHelper::narrowScalarMul

Also remove some redundancy because the source and result
types of any multiply are always the same.

Differential Revision: https://reviews.llvm.org/D110926
llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-umulh.mir
llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-umulo.mir