[llvm-commits] [llvm] r173526 - Remove unused variables, silences -Wunused-variable
Dmitri Gribenko
gribozavr at gmail.com
Fri Jan 25 15:17:22 PST 2013
Author: gribozavr
Date: Fri Jan 25 17:17:21 2013
New Revision: 173526
URL: http://llvm.org/viewvc/llvm-project?rev=173526&view=rev
Log:
Remove unused variables, silences -Wunused-variable
Modified:
llvm/trunk/lib/Target/PowerPC/PPCTargetTransformInfo.cpp
Modified: llvm/trunk/lib/Target/PowerPC/PPCTargetTransformInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCTargetTransformInfo.cpp?rev=173526&r1=173525&r2=173526&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCTargetTransformInfo.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCTargetTransformInfo.cpp Fri Jan 25 17:17:21 2013
@@ -168,8 +168,7 @@ unsigned PPCTTI::getMaximumUnrollFactor(
}
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(ShuffleK
}
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);
}
More information about the llvm-commits
mailing list