aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/CodeGenPrepare.cpp
diff options
context:
space:
mode:
authorSander de Smalen <sander.desmalen@arm.com>2021-02-24 11:54:18 +0000
committerSander de Smalen <sander.desmalen@arm.com>2021-02-24 14:30:03 +0000
commit5e19208d96dda06327b7e17ae17a86049475f111 (patch)
treee6be7966296ef521360c25ba77c5cf58efd06d2e /llvm/lib/CodeGen/CodeGenPrepare.cpp
parent3d837ad7041f88c9bf308d9de0b941e2e7eb4a6c (diff)
downloadllvm-5e19208d96dda06327b7e17ae17a86049475f111.zip
llvm-5e19208d96dda06327b7e17ae17a86049475f111.tar.gz
llvm-5e19208d96dda06327b7e17ae17a86049475f111.tar.bz2
[InstructionCost] NFC: Fix up missing cases in LoopVectorize and CodeGenPrep.
This fixes the types of a few more cost variables to be of type InstructionCost.
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenPrepare.cpp')
-rw-r--r--llvm/lib/CodeGen/CodeGenPrepare.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp
index 6f9475d..f81d097 100644
--- a/llvm/lib/CodeGen/CodeGenPrepare.cpp
+++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp
@@ -6970,9 +6970,9 @@ class VectorPromoteHelper {
// The scalar chain of computation has to pay for the transition
// scalar to vector.
// The vector chain has to account for the combining cost.
- uint64_t ScalarCost =
+ InstructionCost ScalarCost =
TTI.getVectorInstrCost(Transition->getOpcode(), PromotedType, Index);
- uint64_t VectorCost = StoreExtractCombineCost;
+ InstructionCost VectorCost = StoreExtractCombineCost;
enum TargetTransformInfo::TargetCostKind CostKind =
TargetTransformInfo::TCK_RecipThroughput;
for (const auto &Inst : InstsToBePromoted) {