commit | 14b934f8a6f2aeade5a512c5004ec88837f363f5 | [log] [tgz] |
---|---|---|
author | Sander de Smalen <sander.desmalen@arm.com> | Tue Jan 26 16:32:30 2021 +0000 |
committer | Sander de Smalen <sander.desmalen@arm.com> | Wed Apr 14 17:20:34 2021 +0100 |
tree | 467758dc08f5c26f9f595f6ff887f539ed9dc32b | |
parent | 596f669cfbbf5d794442a60f84ae8b5f6ebf1f57 [diff] [blame] |
[TTI] NFC: Change getCFInstrCost to return InstructionCost This patch migrates the TTI cost interfaces to return an InstructionCost. See this patch for the introduction of the type: https://reviews.llvm.org/D91174 See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2020-November/146408.html Reviewed By: samparker Differential Revision: https://reviews.llvm.org/D100313
diff --git a/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp b/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp index c8eeb24..f8e7f5a 100644 --- a/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp +++ b/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
@@ -655,9 +655,9 @@ CostKind); } -unsigned AArch64TTIImpl::getCFInstrCost(unsigned Opcode, - TTI::TargetCostKind CostKind, - const Instruction *I) { +InstructionCost AArch64TTIImpl::getCFInstrCost(unsigned Opcode, + TTI::TargetCostKind CostKind, + const Instruction *I) { if (CostKind != TTI::TCK_RecipThroughput) return Opcode == Instruction::PHI ? 0 : 1; assert(CostKind == TTI::TCK_RecipThroughput && "unexpected CostKind");