diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2013-01-25 23:17:21 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2013-01-25 23:17:21 +0000 |
commit | 395210d15b323aa620059fe362e0f8e5eacc0b05 (patch) | |
tree | ffdfda2b885899236ce7640f272c7fa9f9de4543 /lib/Target/PowerPC/PPCTargetTransformInfo.cpp | |
parent | 483bbd36b8b3f87073feea2e1096f188d0e735b8 (diff) | |
download | llvm-395210d15b323aa620059fe362e0f8e5eacc0b05.tar.gz llvm-395210d15b323aa620059fe362e0f8e5eacc0b05.tar.bz2 llvm-395210d15b323aa620059fe362e0f8e5eacc0b05.tar.xz |
Remove unused variables, silences -Wunused-variable
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173526 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCTargetTransformInfo.cpp')
-rw-r--r-- | lib/Target/PowerPC/PPCTargetTransformInfo.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Target/PowerPC/PPCTargetTransformInfo.cpp b/lib/Target/PowerPC/PPCTargetTransformInfo.cpp index 1afef33df0..88b63e65d1 100644 --- a/lib/Target/PowerPC/PPCTargetTransformInfo.cpp +++ b/lib/Target/PowerPC/PPCTargetTransformInfo.cpp @@ -168,8 +168,7 @@ unsigned PPCTTI::getMaximumUnrollFactor() const { } unsigned PPCTTI::getArithmeticInstrCost(unsigned Opcode, Type *Ty) const { - int ISD = TLI->InstructionOpcodeToISD(Opcode); - assert(ISD && "Invalid opcode"); + assert(TLI->InstructionOpcodeToISD(Opcode) && "Invalid opcode"); // Fallback to the default implementation. return TargetTransformInfo::getArithmeticInstrCost(Opcode, Ty); @@ -181,8 +180,7 @@ unsigned PPCTTI::getShuffleCost(ShuffleKind Kind, Type *Tp, int Index, } unsigned PPCTTI::getCastInstrCost(unsigned Opcode, Type *Dst, Type *Src) const { - int ISD = TLI->InstructionOpcodeToISD(Opcode); - assert(ISD && "Invalid opcode"); + assert(TLI->InstructionOpcodeToISD(Opcode) && "Invalid opcode"); return TargetTransformInfo::getCastInstrCost(Opcode, Dst, Src); } |