OSDN Git Service

[AArch64] Small fix for getIntImmCost
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 18 Mar 2019 18:50:58 +0000 (18:50 +0000)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 18 Mar 2019 18:50:58 +0000 (18:50 +0000)
commitcebbea718141099c65c327532d4ffbf4e8745789
treed224d94b26c41cde5f0df1146bb19329ad69f3e9
parent174d97b3b9e80490f8b965ff23c677f70cd7c789
[AArch64] Small fix for getIntImmCost

It uses the generic AArch64_IMM::expandMOVImm to get the correct
number of instruction used in immediate materialization.

Reviewers: efriedma

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@356391 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64TargetTransformInfo.cpp
test/CodeGen/AArch64/immcost.ll [new file with mode: 0644]