diff options
| author | Jonas Paulsson <paulsson@linux.vnet.ibm.com> | 2018-10-25 22:53:27 +0000 |
|---|---|---|
| committer | Jonas Paulsson <paulsson@linux.vnet.ibm.com> | 2018-10-25 22:53:27 +0000 |
| commit | 2b280ea604aabe286daef9f24d8eb0ffeb5f078e (patch) | |
| tree | 20569de2b66176f98dc8d05ffd8e696fccb857fc | |
| parent | 1db7bd7a33dcb361889c8eb6f9c337879abbdb5c (diff) | |
| download | bcm5719-llvm-2b280ea604aabe286daef9f24d8eb0ffeb5f078e.tar.gz bcm5719-llvm-2b280ea604aabe286daef9f24d8eb0ffeb5f078e.zip | |
[SystemZ] NFC reformatting in SystemZTargetTransformInfo.cpp
Some lines more than 80 characters long reformatted.
llvm-svn: 345331
| -rw-r--r-- | llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp | 12 |
1 files 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. } } |

