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 | 37039640e3844fec6cb6a98973e649626650e047 (patch) | |
tree | 70c14955b1f424680f1460647006ab26a27b5bf0 /llvm/lib | |
parent | 08efb262a9749c1c6dd50c221c57cfd3b8cfd92f (diff) | |
download | bcm5719-llvm-37039640e3844fec6cb6a98973e649626650e047.tar.gz bcm5719-llvm-37039640e3844fec6cb6a98973e649626650e047.zip |
Fix indentation. No functional change.
llvm-svn: 186065
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Analysis/CostModel.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/llvm/lib/Analysis/CostModel.cpp b/llvm/lib/Analysis/CostModel.cpp index 98a7780ad9a..307795c6f5a 100644 --- a/llvm/lib/Analysis/CostModel.cpp +++ b/llvm/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(); |