OSDN Git Service

[AArch64][RegisterBankInfo] Use the generic implementation of copyCost.
authorQuentin Colombet <qcolombet@apple.com>
Wed, 8 Jun 2016 01:24:00 +0000 (01:24 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Wed, 8 Jun 2016 01:24:00 +0000 (01:24 +0000)
Long term we may want to give high cost at FPR to/from GPR copies.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272086 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/AArch64/AArch64RegisterBankInfo.cpp

index 72097a9..94e2d56 100644 (file)
@@ -71,7 +71,8 @@ unsigned AArch64RegisterBankInfo::copyCost(const RegisterBank &A,
   // Will introduce other hooks for different size:
   // * extract cost.
   // * build_sequence cost.
-  return 0;
+  // TODO: Add more accurate cost for FPR to/from GPR.
+  return RegisterBankInfo::copyCost(A, B, Size);
 }
 
 const RegisterBank &AArch64RegisterBankInfo::getRegBankFromRegClass(