[AMDGPU][GlobalISel] Fix lowerShlSat
authorMirko Brkusanin <Mirko.Brkusanin@amd.com>
Mon, 16 Nov 2020 16:43:15 +0000 (17:43 +0100)
committerMirko Brkusanin <Mirko.Brkusanin@amd.com>
Mon, 16 Nov 2020 16:43:31 +0000 (17:43 +0100)
commit4cf6dd518ece653094159fbc48d13832c371cf48
tree1def8e0a3e4620f45e01dda54cd821329effc023
parenta6e353b1d0831867225825d8580bad48174577ae
[AMDGPU][GlobalISel] Fix lowerShlSat

RegBankSelect would crash on G_SELECT when type is not s1.

Differential Revision: https://reviews.llvm.org/D91437
llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-sshlsat.mir
llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-ushlsat.mir