]> granicus.if.org Git - llvm/commit
[GlobalISel] Add legalization support for non-power-2 loads and stores
authorAmara Emerson <aemerson@apple.com>
Wed, 17 Apr 2019 21:30:07 +0000 (21:30 +0000)
committerAmara Emerson <aemerson@apple.com>
Wed, 17 Apr 2019 21:30:07 +0000 (21:30 +0000)
commitc85f346f99957798a9e6b9c75db2b970c3fe0ac9
tree2c654fdf1d68f5fa3a93f61667061e8ab0d543ba
parentea4c7e531ca0c27cc1ef7975baf3ebcb45e97028
[GlobalISel] Add legalization support for non-power-2 loads and stores

Legalize things like i24 load/store by splitting them into smaller power of 2 operations.

This matches how SelectionDAG handles these operations.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358613 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/GlobalISel/LegalizerInfo.h
lib/CodeGen/GlobalISel/LegalizerHelper.cpp
lib/Target/AArch64/AArch64LegalizerInfo.cpp
test/CodeGen/AArch64/GlobalISel/arm64-fallback.ll
test/CodeGen/AArch64/GlobalISel/legalize-non-pow2-load-store.mir [new file with mode: 0644]