[llvm-commits] Release-Asserts warnings

Daniel Dunbar daniel at zuster.org
Mon Nov 3 12:55:51 PST 2008


Quite a few warnings have crept in Release-Asserts mode. I'll fix some of
these but it would be nice to have help, especially for the backend parts
which have clear owners & I don't understand. :)
The lists, taken from my nightlytester:
--
ConstantFold.cpp: In function 'llvm::Constant* FoldBitCast(llvm::Constant*,
const llvm::Type*)':
ConstantFold.cpp:126: warning: unused variable 'SrcTy'
Constants.cpp: In static member function 'static llvm::Constant*
llvm::ConstantExpr::getUIToFP(llvm::Constant*, const llvm::Type*)':
Constants.cpp:1926: warning: unused variable 'fromVec'
Constants.cpp:1927: warning: unused variable 'toVec'
Constants.cpp: In static member function 'static llvm::Constant*
llvm::ConstantExpr::getSIToFP(llvm::Constant*, const llvm::Type*)':
Constants.cpp:1935: warning: unused variable 'fromVec'
Constants.cpp:1936: warning: unused variable 'toVec'
Constants.cpp: In static member function 'static llvm::Constant*
llvm::ConstantExpr::getFPToUI(llvm::Constant*, const llvm::Type*)':
Constants.cpp:1944: warning: unused variable 'fromVec'
Constants.cpp:1945: warning: unused variable 'toVec'
Constants.cpp: In static member function 'static llvm::Constant*
llvm::ConstantExpr::getFPToSI(llvm::Constant*, const llvm::Type*)':
Constants.cpp:1953: warning: unused variable 'fromVec'
Constants.cpp:1954: warning: unused variable 'toVec'
Constants.cpp: In static member function 'static llvm::Constant*
llvm::ConstantExpr::getBitCast(llvm::Constant*, const llvm::Type*)':
Constants.cpp:1983: warning: unused variable 'SrcBitSize'
Constants.cpp:1984: warning: unused variable 'DstBitSize'
Constants.cpp: In static member function 'static llvm::Constant*
llvm::ConstantExpr::getInsertValue(llvm::Constant*, llvm::Constant*, const
unsigned int*, unsigned int)':
Constants.cpp:2368: warning: unused variable 'ValTy'

Instructions.cpp: In static member function 'static
llvm::Instruction::CastOps llvm::CastInst::getCastOpcode(const llvm::Value*,
bool, const llvm::Type*, bool)':
Instructions.cpp:2172: warning: unused variable 'PTy'
Instructions.cpp:2195: warning: unused variable 'PTy'
Instructions.cpp:2203: warning: unused variable 'SrcPTy'

BasicBlockUtils.cpp: In function 'llvm::BasicBlock*
llvm::SplitEdge(llvm::BasicBlock*, llvm::BasicBlock*, llvm::Pass*)':
BasicBlockUtils.cpp:208: warning: unused variable 'e'
BasicBlockUtils.cpp:223: warning: unused variable 'SP'

ArchiveWriter.cpp: In member function 'void
llvm::Archive::writeSymbolTable(std::ofstream&)':
ArchiveWriter.cpp:310: warning: unused variable 'startpos'
ArchiveWriter.cpp:325: warning: unused variable 'endpos'

DAGCombiner.cpp: In member function
'llvm::SDValue<unnamed>::DAGCombiner::FindBetterChain(llvm::SDNode*,
llvm::SDValue)':
DAGCombiner.cpp:5666: warning: 'SrcValueOffset' may be used uninitialized in
this function
DAGCombiner.cpp:5666: note: 'SrcValueOffset' was declared here
DAGCombiner.cpp:5665: warning: 'SrcValue' may be used uninitialized in this
function
DAGCombiner.cpp:5665: note: 'SrcValue' was declared here
DAGCombiner.cpp:5664: warning: 'Size' may be used uninitialized in this
function
DAGCombiner.cpp:5664: note: 'Size' was declared here
DAGCombiner.cpp:5694: warning: 'OpSrcValueOffset' may be used uninitialized
in this function
DAGCombiner.cpp:5694: note: 'OpSrcValueOffset' was declared here
DAGCombiner.cpp:5693: warning: 'OpSrcValue' may be used uninitialized in
this function
DAGCombiner.cpp:5693: note: 'OpSrcValue' was declared here
DAGCombiner.cpp:5692: warning: 'OpSize' may be used uninitialized in this
function
DAGCombiner.cpp:5692: note: 'OpSize' was declared here

LegalizeDAG.cpp: In member function
'void<unnamed>::SelectionDAGLegalize::AddPromotedOperand(llvm::SDValue,
llvm::SDValue)':
LegalizeDAG.cpp:115: warning: unused variable 'isNew'
LegalizeDAG.cpp: In member function
'void<unnamed>::SelectionDAGLegalize::AddWidenOperand(llvm::SDValue,
llvm::SDValue)':
LegalizeDAG.cpp:121: warning: unused variable 'isNew'

LegalizeDAG.cpp: In member function
'void<unnamed>::SelectionDAGLegalize::ExpandOp(llvm::SDValue,
llvm::SDValue&, llvm::SDValue&)':
LegalizeDAG.cpp:7088: warning: unused variable 'isNew'
LegalizeDAG.cpp: In member function
'void<unnamed>::SelectionDAGLegalize::SplitVectorOp(llvm::SDValue,
llvm::SDValue&, llvm::SDValue&)':
LegalizeDAG.cpp:7398: warning: unused variable 'isNew'
LegalizeDAG.cpp: In member function
'llvm::SDValue<unnamed>::SelectionDAGLegalize::ScalarizeVectorOp(llvm::SDValue)':
LegalizeDAG.cpp:7556: warning: unused variable 'isNew'

X86CodeEmitter.cpp: In member function
'void<unnamed>::Emitter::emitInstruction(const llvm::MachineInstr&, const
llvm::TargetInstrDesc*)':
X86CodeEmitter.cpp:519: warning: unused variable 'Value'

LegalizeDAG.cpp: In function 'llvm::SDValue
ExpandUnalignedLoad(llvm::LoadSDNode*, llvm::SelectionDAG&,
llvm::TargetLowering&)':
LegalizeDAG.cpp:686: warning: 'intVT.llvm::MVT::V' may be used uninitialized
in this function
LegalizeDAG.cpp: In function 'llvm::SDValue
ExpandUnalignedStore(llvm::StoreSDNode*, llvm::SelectionDAG&,
llvm::TargetLowering&)':
LegalizeDAG.cpp:631: warning: 'intVT.llvm::MVT::V' may be used uninitialized
in this function

X86FastISel.cpp: In member function 'bool
X86FastISel::X86SelectCall(llvm::Instruction*)':
X86FastISel.cpp:1064: warning: unused variable 'Emitted'
X86FastISel.cpp:1071: warning: unused variable 'Emitted'
X86FastISel.cpp:1095: warning: unused variable 'Emitted'
X86FastISel.cpp:1123: warning: unused variable 'Emitted'
X86FastISel.cpp:1173: warning: unused variable 'Emitted'

DwarfWriter.cpp: In member function 'void
llvm::DwarfDebug::SetModuleInfo(llvm::MachineModuleInfo*)':
DwarfWriter.cpp:2763: warning: unused variable 'AppendOk'

ScalarEvolution.cpp: In member function
'void<unnamed>::ScalarEvolutionsImpl::setSCEV(llvm::Value*, const
llvm::SCEVHandle&)':
ScalarEvolution.cpp:1407: warning: unused variable 'isNew'

X86ISelLowering.cpp: In member function 'llvm::SDValue
llvm::X86TargetLowering::LowerFORMAL_ARGUMENTS(llvm::SDValue,
llvm::SelectionDAG&)':
X86ISelLowering.cpp:1235: warning: 'RC' may be used uninitialized in this
function

SelectionDAG.cpp: In member function 'llvm::SDValue
llvm::SelectionDAG::getMemOperand(const llvm::MachineMemOperand&)':
SelectionDAG.cpp:1200: warning: unused variable 'v'

AlphaGenDAGISel.inc: In member function
'llvm::SDValue<unnamed>::AlphaDAGToDAGISel::Transform_immBRCond(llvm::SDNode*)':
AlphaGenDAGISel.inc:69: warning: control reaches end of non-void function

X86RegisterInfo.cpp: In member function 'virtual int
llvm::X86RegisterInfo::getFrameIndexOffset(llvm::MachineFunction&, int)
const':
X86RegisterInfo.cpp:336: warning: unused variable 'Align'
X86RegisterInfo.cpp: In member function 'virtual void
llvm::X86RegisterInfo::processFunctionBeforeFrameFinalized(llvm::MachineFunction&)
const':
X86RegisterInfo.cpp:479: warning: unused variable 'FrameIdx'

X86TargetAsmInfo.cpp: In member function 'virtual std::string
llvm::X86COFFTargetAsmInfo::UniqueSectionForGlobal(const llvm::GlobalValue*,
llvm::SectionKind::Kind) const':
X86TargetAsmInfo.cpp:308: warning: control reaches end of non-void function

LiveIntervalAnalysis.cpp: In member function 'void
llvm::LiveIntervals::computeNumbering()':
LiveIntervalAnalysis.cpp:127: warning: unused variable 'inserted'

PPCRegisterInfo.cpp: In member function 'virtual void
llvm::PPCRegisterInfo::emitEpilogue(llvm::MachineFunction&,
llvm::MachineBasicBlock&) const':
PPCRegisterInfo.cpp:1371: warning: unused variable 'JumpTarget'
PPCRegisterInfo.cpp:1385: warning: unused variable 'JumpTarget'

LiveVariables.cpp: In member function 'void
llvm::LiveVariables::removeVirtualRegistersKilled(llvm::MachineInstr*)':
LiveVariables.cpp:679: warning: unused variable 'removed'

Reassociate.cpp: In member function
'void<unnamed>::Reassociate::LinearizeExprTree(llvm::BinaryOperator*,
std::vector<<unnamed>::ValueEntry, std::allocator<<unnamed>::ValueEntry>
>&)':
Reassociate.cpp:283: warning: unused variable 'Success'

LowerSubregs.cpp: In member function
'bool<unnamed>::LowerSubregsInstructionPass::LowerInsert(llvm::MachineInstr*)':
LowerSubregs.cpp:155: warning: unused variable 'SrcReg'

ARMConstantIslandPass.cpp:709: warning: 'bool
BBIsJumpedOver(llvm::MachineBasicBlock*)' defined but not used

MachOWriter.cpp: In member function 'void
llvm::MachOCodeEmitter::emitConstantPool(llvm::MachineConstantPool*)':
MachOWriter.cpp:267: warning: unused variable 'isPIC'
MachOWriter.cpp: In member function 'void
llvm::MachOCodeEmitter::emitJumpTables(llvm::MachineJumpTableInfo*)':
MachOWriter.cpp:308: warning: unused variable 'isPIC'

Reassociate.cpp: At global scope:
Reassociate.cpp:58: warning: 'void PrintOps(llvm::Instruction*, const
std::vector<<unnamed>::ValueEntry, std::allocator<<unnamed>::ValueEntry>
>&)' defined but not used

SCCP.cpp: In member function 'virtual
bool<unnamed>::IPSCCP::runOnModule(llvm::Module&)':
SCCP.cpp:1794: warning: unused variable 'SI'
SCCP.cpp:1791: warning: unused variable 'BI'

MipsISelDAGToDAG.cpp: In member function
'llvm::SDNode*<unnamed>::MipsDAGToDAGISel::Select(llvm::SDValue)':
MipsISelDAGToDAG.cpp:221: warning: unused variable 'Opc'

PredicateSimplifier.cpp:346: warning:
'bool<unnamed>::validPredicate(<unnamed>::LatticeVal)' defined but not used

MipsInstrInfo.cpp: In member function 'virtual llvm::MachineInstr*
llvm::MipsInstrInfo::foldMemoryOperand(llvm::MachineFunction&,
llvm::MachineInstr*, const llvm::SmallVectorImpl<unsigned int>&, int)
const':
MipsInstrInfo.cpp:317: warning: 'LoadOpc' may be used uninitialized in this
function
MipsInstrInfo.cpp:317: warning: 'StoreOpc' may be used uninitialized in this
function
MipsInstrInfo.cpp: In member function 'virtual void
llvm::MipsInstrInfo::loadRegFromAddr(llvm::MachineFunction&, unsigned int,
llvm::SmallVectorImpl<llvm::MachineOperand>&, const
llvm::TargetRegisterClass*, llvm::SmallVectorImpl<llvm::MachineInstr*>&)
const':
MipsInstrInfo.cpp:255: warning: 'Opc' may be used uninitialized in this
function
MipsInstrInfo.cpp: In member function 'virtual void
llvm::MipsInstrInfo::storeRegToAddr(llvm::MachineFunction&, unsigned int,
bool, llvm::SmallVectorImpl<llvm::MachineOperand>&, const
llvm::TargetRegisterClass*, llvm::SmallVectorImpl<llvm::MachineInstr*>&)
const':
MipsInstrInfo.cpp:204: warning: 'Opc' may be used uninitialized in this
function
MipsInstrInfo.cpp: In member function 'virtual void
llvm::MipsInstrInfo::storeRegToStackSlot(llvm::MachineBasicBlock&,
llvm::ilist_iterator<llvm::MachineInstr>, unsigned int, bool, int, const
llvm::TargetRegisterClass*) const':
MipsInstrInfo.cpp:184: warning: 'Opc' may be used uninitialized in this
function
MipsInstrInfo.cpp: In member function 'virtual void
llvm::MipsInstrInfo::loadRegFromStackSlot(llvm::MachineBasicBlock&,
llvm::ilist_iterator<llvm::MachineInstr>, unsigned int, int, const
llvm::TargetRegisterClass*) const':
MipsInstrInfo.cpp:236: warning: 'Opc' may be used uninitialized in this
function

ARMISelLowering.cpp: In member function 'llvm::SDValue
llvm::ARMTargetLowering::LowerCALL(llvm::SDValue, llvm::SelectionDAG&)':
ARMISelLowering.cpp:406: warning: unused variable 'CallConv'

SPUAsmPrinter.cpp: In member function
'void<unnamed>::SPUAsmPrinter::printMemRegImmS10(const llvm::MachineInstr*,
unsigned int)':
SPUAsmPrinter.cpp:188: warning: unused variable 'MO'

DarwinTargetAsmInfo.cpp: In member function 'virtual const llvm::Section*
llvm::DarwinTargetAsmInfo::SelectSectionForGlobal(const llvm::GlobalValue*)
const':
DarwinTargetAsmInfo.cpp:111: warning: control reaches end of non-void
function

ELFTargetAsmInfo.cpp: In member function 'virtual const llvm::Section*
llvm::ELFTargetAsmInfo::SelectSectionForGlobal(const llvm::GlobalValue*)
const':
ELFTargetAsmInfo.cpp:89: warning: control reaches end of non-void function

RegAllocSimple.cpp: In member function 'unsigned
int<unnamed>::RegAllocSimple::getFreeReg(unsigned int)':
RegAllocSimple.cpp:125: warning: unused variable 'RE'

TargetAsmInfo.cpp: In member function 'virtual std::string
llvm::TargetAsmInfo::UniqueSectionForGlobal(const llvm::GlobalValue*,
llvm::SectionKind::Kind) const':
TargetAsmInfo.cpp:344: warning: control reaches end of non-void function

RegisterScavenging.cpp:146: warning: 'bool isLiveInButUnusedBefore(unsigned
int, llvm::MachineInstr*, llvm::MachineBasicBlock*, const
llvm::TargetRegisterInfo*, llvm::MachineRegisterInfo*)' defined but not used

SimpleRegisterCoalescing.cpp: In member function 'bool
llvm::SimpleRegisterCoalescing::SimpleJoin(llvm::LiveInterval&,
llvm::LiveInterval&)':
SimpleRegisterCoalescing.cpp:1645: warning: 'LHSValNo' may be used
uninitialized in this function
--

 - Daniel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20081103/c1840b70/attachment.html>


More information about the llvm-commits mailing list