[PATCH] D109963: [AArch64] Split bitmask immediate of bitwise AND operation
Dave Green via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 21 00:42:18 PDT 2021
dmgreen added a comment.
Nice job making the tablegen patterns work.
Is it possible to combine more of the 32 and 64bit logic? They share quite a bit in common. A few more tests sound useful too, for various edge cases.
================
Comment at: llvm/lib/Target/AArch64/AArch64InstrInfo.td:1962
+
+ if (isSingleInstImm64(UImm64))
+ return false;
----------------
This can probably use AArch64_IMM::expandMOVImm? And Count the number of Instructions it produces. A similar "how many instructions will this immediate produce" was needed in https://reviews.llvm.org/D108871
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D109963/new/
https://reviews.llvm.org/D109963
More information about the llvm-commits
mailing list