OSDN Git Service

[ARM GlobalISel] Add support for s64 G_ADD and G_SUB.
authorEli Friedman <efriedma@quicinc.com>
Thu, 20 Jun 2019 21:56:47 +0000 (21:56 +0000)
committerEli Friedman <efriedma@quicinc.com>
Thu, 20 Jun 2019 21:56:47 +0000 (21:56 +0000)
commit02c0b2da0a44618c0b97b6aa815d5d633339e104
tree14e915af1f3f47e5d7d6411b9a50ea76d23bb0e8
parent38bb96c023df8865ebbe356df904cb317819ed60
[ARM GlobalISel] Add support for s64 G_ADD and G_SUB.

Teach RegisterBankInfo to use the correct register class, and tell the
legalizer it's legal.  Everything else just works.

The one thing that's slightly weird about this compared to SelectionDAG
isel is that legalization can't distinguish between i64 and <1 x i64>,
so we might end up with more NEON instructions than the user expects.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@363989 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMLegalizerInfo.cpp
lib/Target/ARM/ARMRegisterBankInfo.cpp