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 | c451bdf9ff7b9ef5efbde7301c49921e749a8300 (patch) | |
tree | 55582198a5fa6e66857f36cb70d85ab25bbb95ee /llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp | |
parent | f10ef4d40ca14e49bda44772a93df994b8dd49e0 (diff) | |
download | bcm5719-llvm-c451bdf9ff7b9ef5efbde7301c49921e749a8300.tar.gz bcm5719-llvm-c451bdf9ff7b9ef5efbde7301c49921e749a8300.zip |
Remove unused variables, silences -Wunused-variable
llvm-svn: 173526
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp b/llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp index 1afef33df03..88b63e65d16 100644 --- a/llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp +++ b/llvm/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); } |