diff options
author | Craig Topper <craig.topper@gmail.com> | 2013-07-11 05:39:44 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2013-07-11 05:39:44 +0000 |
commit | 2ebba647eab05aaf71f6a309f855720ab6f90c7f (patch) | |
tree | 353f1c0e47dd57d57a926a561ef4b13cc39ad395 | |
parent | ace9ed50b549667eff8e19eb76f7714a3a6161ae (diff) | |
download | llvm-2ebba647eab05aaf71f6a309f855720ab6f90c7f.tar.gz llvm-2ebba647eab05aaf71f6a309f855720ab6f90c7f.tar.bz2 llvm-2ebba647eab05aaf71f6a309f855720ab6f90c7f.tar.xz |
Fix indentation. No functional change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186065 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Analysis/CostModel.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/Analysis/CostModel.cpp b/lib/Analysis/CostModel.cpp index 98a7780ad9..307795c6f5 100644 --- a/lib/Analysis/CostModel.cpp +++ b/lib/Analysis/CostModel.cpp @@ -193,14 +193,14 @@ unsigned CostModelAnalysis::getInstructionCost(const Instruction *I) const { EEI->getOperand(0)->getType(), Idx); } case Instruction::InsertElement: { - const InsertElementInst * IE = cast<InsertElementInst>(I); - ConstantInt *CI = dyn_cast<ConstantInt>(IE->getOperand(2)); - unsigned Idx = -1; - if (CI) - Idx = CI->getZExtValue(); - return TTI->getVectorInstrCost(I->getOpcode(), - IE->getType(), Idx); - } + const InsertElementInst * IE = cast<InsertElementInst>(I); + ConstantInt *CI = dyn_cast<ConstantInt>(IE->getOperand(2)); + unsigned Idx = -1; + if (CI) + Idx = CI->getZExtValue(); + return TTI->getVectorInstrCost(I->getOpcode(), + IE->getType(), Idx); + } case Instruction::ShuffleVector: { const ShuffleVectorInst *Shuffle = cast<ShuffleVectorInst>(I); Type *VecTypOp0 = Shuffle->getOperand(0)->getType(); |