[MIPS GlobalISel] Select 4 byte unaligned load and store
authorPetar Avramovic <Petar.Avramovic@rt-rk.com>
Wed, 19 Feb 2020 10:35:43 +0000 (11:35 +0100)
committerPetar Avramovic <Petar.Avramovic@rt-rk.com>
Wed, 19 Feb 2020 10:57:06 +0000 (11:57 +0100)
commit5171d1523dd853117d0df080850d1c77c63d0e76
tree963ac0c9de11e441c7fb0a739ffeb23186c79246
parent216afd3301f3d96a8ec29d80da67b78cd9e99527
[MIPS GlobalISel] Select 4 byte unaligned load and store

Improve legality checks for load and store, 4 byte scalar
load and store are now legal for all subtargets.
During regbank selection 4 byte unaligned loads and stores
for MIPS32r5 and older get mapped to gprb.
Select 4 byte unaligned loads and stores for MIPS32r5.
Fix tests that unintentionally had unaligned load or store.

Differential Revision: https://reviews.llvm.org/D74624
15 files changed:
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/load_4_unaligned.mir [new file with mode: 0644]
llvm/test/CodeGen/Mips/GlobalISel/instruction-select/load_4_unaligned_r6.mir [new file with mode: 0644]
llvm/test/CodeGen/Mips/GlobalISel/instruction-select/store_4_unaligned.mir [new file with mode: 0644]
llvm/test/CodeGen/Mips/GlobalISel/instruction-select/store_4_unaligned_r6.mir [new file with mode: 0644]
llvm/test/CodeGen/Mips/GlobalISel/legalizer/load_4_unaligned.mir [new file with mode: 0644]
llvm/test/CodeGen/Mips/GlobalISel/legalizer/store_4_unaligned.mir [new file with mode: 0644]
llvm/test/CodeGen/Mips/GlobalISel/llvm-ir/load_4_unaligned.ll [new file with mode: 0644]
llvm/test/CodeGen/Mips/GlobalISel/llvm-ir/phi.ll
llvm/test/CodeGen/Mips/GlobalISel/llvm-ir/store_4_unaligned.ll [new file with mode: 0644]
llvm/test/CodeGen/Mips/GlobalISel/regbankselect/load_4_unaligned.mir [new file with mode: 0644]
llvm/test/CodeGen/Mips/GlobalISel/regbankselect/phi.mir
llvm/test/CodeGen/Mips/GlobalISel/regbankselect/store_4_unaligned.mir [new file with mode: 0644]