diff options
author | Hans Wennborg <hans@hanshq.net> | 2012-10-29 16:26:52 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2012-10-29 16:26:52 +0000 |
commit | aad8ad1c36074dc2027d716a6d7bebe6d41cbed3 (patch) | |
tree | dec27431eda233923a4b5092e5023f0ba8a212db /llvm/lib/Target/TargetTransformImpl.cpp | |
parent | aebb8b034c4e4c6f805b2a260cd2071c879adaf1 (diff) | |
download | llvm-aad8ad1c36074dc2027d716a6d7bebe6d41cbed3.zip llvm-aad8ad1c36074dc2027d716a6d7bebe6d41cbed3.tar.gz llvm-aad8ad1c36074dc2027d716a6d7bebe6d41cbed3.tar.bz2 |
Minor style fixes for TargetTransformationInfo and TargetTransformImpl
llvm-svn: 166936
Diffstat (limited to 'llvm/lib/Target/TargetTransformImpl.cpp')
-rw-r--r-- | llvm/lib/Target/TargetTransformImpl.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/TargetTransformImpl.cpp b/llvm/lib/Target/TargetTransformImpl.cpp index d3823a6..657491b 100644 --- a/llvm/lib/Target/TargetTransformImpl.cpp +++ b/llvm/lib/Target/TargetTransformImpl.cpp @@ -28,7 +28,7 @@ bool ScalarTargetTransformImpl::isLegalICmpImmediate(int64_t imm) const { } bool ScalarTargetTransformImpl::isLegalAddressingMode(const AddrMode &AM, - Type *Ty) const { + Type *Ty) const { return TLI->isLegalAddressingMode(AM, Ty); } @@ -150,7 +150,7 @@ VectorTargetTransformImpl::getScalarizationOverhead(Type *Ty, bool Insert, bool Extract) const { assert (Ty->isVectorTy() && "Can only scalarize vectors"); - unsigned Cost = 0; + unsigned Cost = 0; for (int i = 0, e = Ty->getVectorNumElements(); i < e; ++i) { if (Insert) @@ -240,7 +240,7 @@ unsigned VectorTargetTransformImpl::getCmpSelInstrCost(unsigned Opcode, Type *CondTy) const { int ISD = InstructionOpcodeToISD(Opcode); assert(ISD && "Invalid opcode"); - + // Selects on vectors are actually vector selects. if (ISD == ISD::SELECT) { assert(CondTy && "CondTy must exist"); |