[AArch64][GlobalISel] Mark G_FMINNUM/G_FMAXNUM as floating point opcodes
authorJessica Paquette <jpaquette@apple.com>
Wed, 18 Aug 2021 00:40:23 +0000 (17:40 -0700)
committerJessica Paquette <jpaquette@apple.com>
Wed, 18 Aug 2021 20:32:19 +0000 (13:32 -0700)
commit3d91d5b757ff15f1c57a165e5d530320ac1428bd
tree66f583d0b7f20dc24344e3557989b2981f6e59f7
parent45e1a6bd2589469be526c2213598b9847a655fcb
[AArch64][GlobalISel] Mark G_FMINNUM/G_FMAXNUM as floating point opcodes

We need to ensure that these end up on FPR to allow imported patterns to
select them.

This will also ensure that we get good regbank selection when dealing with
instructions like G_PHI/G_LOAD/G_STORE which deduce their banks from their
uses/users.

Differential Revision: https://reviews.llvm.org/D108260
llvm/lib/Target/AArch64/GISel/AArch64RegisterBankInfo.cpp
llvm/test/CodeGen/AArch64/GlobalISel/regbank-maxnum.mir [new file with mode: 0644]
llvm/test/CodeGen/AArch64/GlobalISel/regbank-minnum.mir [new file with mode: 0644]