[MIPS GlobalISel] Select G_SELECT
authorPetar Avramovic <Petar.Avramovic@rt-rk.com>
Tue, 25 Dec 2018 14:42:30 +0000 (14:42 +0000)
committerPetar Avramovic <Petar.Avramovic@rt-rk.com>
Tue, 25 Dec 2018 14:42:30 +0000 (14:42 +0000)
commit09dff3334931052cfd0dab9dd5ae23bee6be1406
treeb9d774be99a4aeb40dae4743889113f2545534db
parent9b25bf396041a4e9e13d5e3a2f336c7868236999
[MIPS GlobalISel] Select G_SELECT

Add widen scalar for type index 1 (i1 condition) for G_SELECT.
Select G_SELECT for pointer, s32(integer) and smaller low level
types on MIPS32.

Differential Revision: https://reviews.llvm.org/D56001

llvm-svn: 350063
llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
llvm/lib/Target/Mips/MipsInstructionSelector.cpp
llvm/lib/Target/Mips/MipsLegalizerInfo.cpp
llvm/lib/Target/Mips/MipsRegisterBankInfo.cpp
llvm/test/CodeGen/Mips/GlobalISel/instruction-select/select.mir [new file with mode: 0644]
llvm/test/CodeGen/Mips/GlobalISel/legalizer/select.mir [new file with mode: 0644]
llvm/test/CodeGen/Mips/GlobalISel/llvm-ir/select.ll [new file with mode: 0644]
llvm/test/CodeGen/Mips/GlobalISel/regbankselect/select.mir [new file with mode: 0644]