]> granicus.if.org Git - llvm/commit
[ARM] Add fp16 addressing to isLegalT2AddressImmediate
authorDavid Green <david.green@arm.com>
Sat, 8 Jun 2019 10:09:02 +0000 (10:09 +0000)
committerDavid Green <david.green@arm.com>
Sat, 8 Jun 2019 10:09:02 +0000 (10:09 +0000)
commit3ca35d81c10a881d41c33fc8ff3072dc52f1a583
tree321debfd0da12037a80123a80817cdc6e8a7ead2
parent516565caafa17059769a44a4549e83e80b909765
[ARM] Add fp16 addressing to isLegalT2AddressImmediate

The fp16 version of VLDR takes a imm8 multiplied by 2. This updates the costs
to account for those, and adds extra testing. It is dependant upon hasFPRegs16
as this is what the load/store instructions require.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@362872 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMISelLowering.cpp
test/Analysis/CostModel/ARM/gep.ll