[llvm] r272086 - [AArch64][RegisterBankInfo] Use the generic implementation of copyCost.
Quentin Colombet via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 7 18:24:00 PDT 2016
Author: qcolombet
Date: Tue Jun 7 20:24:00 2016
New Revision: 272086
URL: http://llvm.org/viewvc/llvm-project?rev=272086&view=rev
Log:
[AArch64][RegisterBankInfo] Use the generic implementation of copyCost.
Long term we may want to give high cost at FPR to/from GPR copies.
Modified:
llvm/trunk/lib/Target/AArch64/AArch64RegisterBankInfo.cpp
Modified: llvm/trunk/lib/Target/AArch64/AArch64RegisterBankInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/AArch64RegisterBankInfo.cpp?rev=272086&r1=272085&r2=272086&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64RegisterBankInfo.cpp (original)
+++ llvm/trunk/lib/Target/AArch64/AArch64RegisterBankInfo.cpp Tue Jun 7 20:24:00 2016
@@ -71,7 +71,8 @@ unsigned AArch64RegisterBankInfo::copyCo
// 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(
More information about the llvm-commits
mailing list