From 2b280ea604aabe286daef9f24d8eb0ffeb5f078e Mon Sep 17 00:00:00 2001 From: Jonas Paulsson Date: Thu, 25 Oct 2018 22:53:27 +0000 Subject: [SystemZ] NFC reformatting in SystemZTargetTransformInfo.cpp Some lines more than 80 characters long reformatted. llvm-svn: 345331 --- llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp b/llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp index 670a8d393f8..3bc87ef0225 100644 --- a/llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp +++ b/llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp @@ -393,7 +393,8 @@ int SystemZTTIImpl::getArithmeticInstrCost( } if (Ty->isVectorTy()) { - assert (ST->hasVector() && "getArithmeticInstrCost() called with vector type."); + assert(ST->hasVector() && + "getArithmeticInstrCost() called with vector type."); unsigned VF = Ty->getVectorNumElements(); unsigned NumVectors = getNumVectorRegs(Ty); @@ -428,7 +429,8 @@ int SystemZTTIImpl::getArithmeticInstrCost( return NumVectors; // Return the cost of multiple scalar invocation plus the cost of // inserting and extracting the values. - unsigned ScalarCost = getArithmeticInstrCost(Opcode, Ty->getScalarType()); + unsigned ScalarCost = + getArithmeticInstrCost(Opcode, Ty->getScalarType()); unsigned Cost = (VF * ScalarCost) + getScalarizationOverhead(Ty, Args); // FIXME: VF 2 for these FP operations are currently just as // expensive as for VF 4. @@ -759,8 +761,8 @@ int SystemZTTIImpl::getCastInstrCost(unsigned Opcode, Type *Dst, Type *Src, return BaseT::getCastInstrCost(Opcode, Dst, Src, I); } -int SystemZTTIImpl::getCmpSelInstrCost(unsigned Opcode, Type *ValTy, Type *CondTy, - const Instruction *I) { +int SystemZTTIImpl::getCmpSelInstrCost(unsigned Opcode, Type *ValTy, + Type *CondTy, const Instruction *I) { if (ValTy->isVectorTy()) { assert (ST->hasVector() && "getCmpSelInstrCost() called with vector type."); unsigned VF = ValTy->getVectorNumElements(); @@ -821,7 +823,7 @@ int SystemZTTIImpl::getCmpSelInstrCost(unsigned Opcode, Type *ValTy, Type *CondT } case Instruction::Select: if (ValTy->isFloatingPointTy()) - return 4; // No load on condition for FP, so this costs a conditional jump. + return 4; // No load on condition for FP - costs a conditional jump. return 1; // Load On Condition. } } -- cgit v1.2.3