[llvm] [AArch64][GlobalISel] Avoid cross bank copies for NEON vcvtfp2fx results (PR #213277)
Kieran B via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 6 03:15:50 PDT 2026
================
@@ -1442,6 +1440,32 @@ AArch64RegisterBankInfo::getInstrMapping(const MachineInstr &MI) const {
// OpRegBankIdx[1] is the intrinsic ID.
// OpRegBankIdx[3] is an integer immediate.
break;
+ case Intrinsic::aarch64_neon_vcvtfp2fxs:
+ case Intrinsic::aarch64_neon_vcvtfp2fxu: {
----------------
kieroxide wrote:
This case duplicates most of the logic from the previous case on line 1409. The only differences are checking the srcSize instead of dstSize and not checking hasFPRCVT as fp2fx has no FPRCVT instruction variants.
If requested, I can create a helper to reduce the duplication for these two case blocks
https://github.com/llvm/llvm-project/pull/213277
More information about the llvm-commits
mailing list