From 29b8e1633e5881a0518b0c85a366b351a502549e Mon Sep 17 00:00:00 2001 From: Quentin Colombet Date: Wed, 8 Jun 2016 01:24:00 +0000 Subject: [PATCH] [AArch64][RegisterBankInfo] Use the generic implementation of copyCost. Long term we may want to give high cost at FPR to/from GPR copies. llvm-svn: 272086 --- lib/Target/AArch64/AArch64RegisterBankInfo.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Target/AArch64/AArch64RegisterBankInfo.cpp b/lib/Target/AArch64/AArch64RegisterBankInfo.cpp index 72097a9bbd8..94e2d569e71 100644 --- a/lib/Target/AArch64/AArch64RegisterBankInfo.cpp +++ b/lib/Target/AArch64/AArch64RegisterBankInfo.cpp @@ -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(