]> granicus.if.org Git - llvm/commit
GlobalISel: Consolidate load/store legalization
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 5 Feb 2019 00:26:12 +0000 (00:26 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 5 Feb 2019 00:26:12 +0000 (00:26 +0000)
commit4966488eeef832d90cb5bad2e1cdb5d02b6d6819
tree4a64146cb53fc062536b750e315a2167abfa555c
parentc4130de547959e18b1ed7026e6d21acc2f634015
GlobalISel: Consolidate load/store legalization

The fewerElementsVectors implementation for load/stores
handles the scalar reduction case just as well, so drop
the redundant code in narrowScalar. This also introduces
support for narrowing irregular size breakdowns for
scalars.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@353125 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/GlobalISel/LegalizerHelper.h
lib/CodeGen/GlobalISel/LegalizerHelper.cpp
test/CodeGen/AArch64/GlobalISel/arm64-fallback.ll
test/CodeGen/AMDGPU/GlobalISel/legalize-load.mir
test/CodeGen/AMDGPU/GlobalISel/legalize-store.mir
test/CodeGen/X86/GlobalISel/x86_64-fallback.ll