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. :)<div><br></div>
<div>The lists, taken from my nightlytester:</div><div>--</div><div>ConstantFold.cpp: In function 'llvm::Constant* FoldBitCast(llvm::Constant*, const llvm::Type*)':</div><div>ConstantFold.cpp:126: warning: unused variable 'SrcTy'</div>
<div>Constants.cpp: In static member function 'static llvm::Constant* llvm::ConstantExpr::getUIToFP(llvm::Constant*, const llvm::Type*)':</div><div>Constants.cpp:1926: warning: unused variable 'fromVec'</div>
<div>Constants.cpp:1927: warning: unused variable 'toVec'</div><div>Constants.cpp: In static member function 'static llvm::Constant* llvm::ConstantExpr::getSIToFP(llvm::Constant*, const llvm::Type*)':</div>
<div>Constants.cpp:1935: warning: unused variable 'fromVec'</div><div>Constants.cpp:1936: warning: unused variable 'toVec'</div><div>Constants.cpp: In static member function 'static llvm::Constant* llvm::ConstantExpr::getFPToUI(llvm::Constant*, const llvm::Type*)':</div>
<div>Constants.cpp:1944: warning: unused variable 'fromVec'</div><div>Constants.cpp:1945: warning: unused variable 'toVec'</div><div>Constants.cpp: In static member function 'static llvm::Constant* llvm::ConstantExpr::getFPToSI(llvm::Constant*, const llvm::Type*)':</div>
<div>Constants.cpp:1953: warning: unused variable 'fromVec'</div><div>Constants.cpp:1954: warning: unused variable 'toVec'</div><div>Constants.cpp: In static member function 'static llvm::Constant* llvm::ConstantExpr::getBitCast(llvm::Constant*, const llvm::Type*)':</div>
<div>Constants.cpp:1983: warning: unused variable 'SrcBitSize'</div><div>Constants.cpp:1984: warning: unused variable 'DstBitSize'</div><div>Constants.cpp: In static member function 'static llvm::Constant* llvm::ConstantExpr::getInsertValue(llvm::Constant*, llvm::Constant*, const unsigned int*, unsigned int)':</div>
<div>Constants.cpp:2368: warning: unused variable 'ValTy'</div><div><br></div><div>Instructions.cpp: In static member function 'static llvm::Instruction::CastOps llvm::CastInst::getCastOpcode(const llvm::Value*, bool, const llvm::Type*, bool)':</div>
<div>Instructions.cpp:2172: warning: unused variable 'PTy'</div><div>Instructions.cpp:2195: warning: unused variable 'PTy'</div><div>Instructions.cpp:2203: warning: unused variable 'SrcPTy'</div><div>
<br></div><div>BasicBlockUtils.cpp: In function 'llvm::BasicBlock* llvm::SplitEdge(llvm::BasicBlock*, llvm::BasicBlock*, llvm::Pass*)':</div><div>BasicBlockUtils.cpp:208: warning: unused variable 'e'</div>
<div>BasicBlockUtils.cpp:223: warning: unused variable 'SP'</div><div><br></div><div>ArchiveWriter.cpp: In member function 'void llvm::Archive::writeSymbolTable(std::ofstream&)':</div><div>ArchiveWriter.cpp:310: warning: unused variable 'startpos'</div>
<div>ArchiveWriter.cpp:325: warning: unused variable 'endpos'</div><div><br></div><div>DAGCombiner.cpp: In member function 'llvm::SDValue<unnamed>::DAGCombiner::FindBetterChain(llvm::SDNode*, llvm::SDValue)':</div>
<div>DAGCombiner.cpp:5666: warning: 'SrcValueOffset' may be used uninitialized in this function</div><div>DAGCombiner.cpp:5666: note: 'SrcValueOffset' was declared here</div><div>DAGCombiner.cpp:5665: warning: 'SrcValue' may be used uninitialized in this function</div>
<div>DAGCombiner.cpp:5665: note: 'SrcValue' was declared here</div><div>DAGCombiner.cpp:5664: warning: 'Size' may be used uninitialized in this function</div><div>DAGCombiner.cpp:5664: note: 'Size' was declared here</div>
<div>DAGCombiner.cpp:5694: warning: 'OpSrcValueOffset' may be used uninitialized in this function</div><div>DAGCombiner.cpp:5694: note: 'OpSrcValueOffset' was declared here</div><div>DAGCombiner.cpp:5693: warning: 'OpSrcValue' may be used uninitialized in this function</div>
<div>DAGCombiner.cpp:5693: note: 'OpSrcValue' was declared here</div><div>DAGCombiner.cpp:5692: warning: 'OpSize' may be used uninitialized in this function</div><div>DAGCombiner.cpp:5692: note: 'OpSize' was declared here</div>
<div><br></div><div>LegalizeDAG.cpp: In member function 'void<unnamed>::SelectionDAGLegalize::AddPromotedOperand(llvm::SDValue, llvm::SDValue)':</div><div>LegalizeDAG.cpp:115: warning: unused variable 'isNew'</div>
<div>LegalizeDAG.cpp: In member function 'void<unnamed>::SelectionDAGLegalize::AddWidenOperand(llvm::SDValue, llvm::SDValue)':</div><div>LegalizeDAG.cpp:121: warning: unused variable 'isNew'</div><div>
<br></div><div>LegalizeDAG.cpp: In member function 'void<unnamed>::SelectionDAGLegalize::ExpandOp(llvm::SDValue, llvm::SDValue&, llvm::SDValue&)':</div><div>LegalizeDAG.cpp:7088: warning: unused variable 'isNew'</div>
<div>LegalizeDAG.cpp: In member function 'void<unnamed>::SelectionDAGLegalize::SplitVectorOp(llvm::SDValue, llvm::SDValue&, llvm::SDValue&)':</div><div>LegalizeDAG.cpp:7398: warning: unused variable 'isNew'</div>
<div>LegalizeDAG.cpp: In member function 'llvm::SDValue<unnamed>::SelectionDAGLegalize::ScalarizeVectorOp(llvm::SDValue)':</div><div>LegalizeDAG.cpp:7556: warning: unused variable 'isNew'</div><div><br>
</div><div>X86CodeEmitter.cpp: In member function 'void<unnamed>::Emitter::emitInstruction(const llvm::MachineInstr&, const llvm::TargetInstrDesc*)':</div><div>X86CodeEmitter.cpp:519: warning: unused variable 'Value'</div>
<div><br></div><div>LegalizeDAG.cpp: In function 'llvm::SDValue ExpandUnalignedLoad(llvm::LoadSDNode*, llvm::SelectionDAG&, llvm::TargetLowering&)':</div><div>LegalizeDAG.cpp:686: warning: 'intVT.llvm::MVT::V' may be used uninitialized in this function</div>
<div>LegalizeDAG.cpp: In function 'llvm::SDValue ExpandUnalignedStore(llvm::StoreSDNode*, llvm::SelectionDAG&, llvm::TargetLowering&)':</div><div>LegalizeDAG.cpp:631: warning: 'intVT.llvm::MVT::V' may be used uninitialized in this function</div>
<div><br></div><div>X86FastISel.cpp: In member function 'bool X86FastISel::X86SelectCall(llvm::Instruction*)':</div><div>X86FastISel.cpp:1064: warning: unused variable 'Emitted'</div><div>X86FastISel.cpp:1071: warning: unused variable 'Emitted'</div>
<div>X86FastISel.cpp:1095: warning: unused variable 'Emitted'</div><div>X86FastISel.cpp:1123: warning: unused variable 'Emitted'</div><div>X86FastISel.cpp:1173: warning: unused variable 'Emitted'</div>
<div><br></div><div>DwarfWriter.cpp: In member function 'void llvm::DwarfDebug::SetModuleInfo(llvm::MachineModuleInfo*)':</div><div>DwarfWriter.cpp:2763: warning: unused variable 'AppendOk'</div><div><br></div>
<div>ScalarEvolution.cpp: In member function 'void<unnamed>::ScalarEvolutionsImpl::setSCEV(llvm::Value*, const llvm::SCEVHandle&)':</div><div>ScalarEvolution.cpp:1407: warning: unused variable 'isNew'</div>
<div><br></div><div>X86ISelLowering.cpp: In member function 'llvm::SDValue llvm::X86TargetLowering::LowerFORMAL_ARGUMENTS(llvm::SDValue, llvm::SelectionDAG&)':</div><div>X86ISelLowering.cpp:1235: warning: 'RC' may be used uninitialized in this function</div>
<div><br></div><div>SelectionDAG.cpp: In member function 'llvm::SDValue llvm::SelectionDAG::getMemOperand(const llvm::MachineMemOperand&)':</div><div>SelectionDAG.cpp:1200: warning: unused variable 'v'</div>
<div><br></div><div>AlphaGenDAGISel.inc: In member function 'llvm::SDValue<unnamed>::AlphaDAGToDAGISel::Transform_immBRCond(llvm::SDNode*)':</div><div>AlphaGenDAGISel.inc:69: warning: control reaches end of non-void function</div>
<div><br></div><div>X86RegisterInfo.cpp: In member function 'virtual int llvm::X86RegisterInfo::getFrameIndexOffset(llvm::MachineFunction&, int) const':</div><div>X86RegisterInfo.cpp:336: warning: unused variable 'Align'</div>
<div>X86RegisterInfo.cpp: In member function 'virtual void llvm::X86RegisterInfo::processFunctionBeforeFrameFinalized(llvm::MachineFunction&) const':</div><div>X86RegisterInfo.cpp:479: warning: unused variable 'FrameIdx'</div>
<div><br></div><div>X86TargetAsmInfo.cpp: In member function 'virtual std::string llvm::X86COFFTargetAsmInfo::UniqueSectionForGlobal(const llvm::GlobalValue*, llvm::SectionKind::Kind) const':</div><div>X86TargetAsmInfo.cpp:308: warning: control reaches end of non-void function</div>
<div><br></div><div>LiveIntervalAnalysis.cpp: In member function 'void llvm::LiveIntervals::computeNumbering()':</div><div>LiveIntervalAnalysis.cpp:127: warning: unused variable 'inserted'</div><div><br></div>
<div>PPCRegisterInfo.cpp: In member function 'virtual void llvm::PPCRegisterInfo::emitEpilogue(llvm::MachineFunction&, llvm::MachineBasicBlock&) const':</div><div>PPCRegisterInfo.cpp:1371: warning: unused variable 'JumpTarget'</div>
<div>PPCRegisterInfo.cpp:1385: warning: unused variable 'JumpTarget'</div><div><br></div><div>LiveVariables.cpp: In member function 'void llvm::LiveVariables::removeVirtualRegistersKilled(llvm::MachineInstr*)':</div>
<div>LiveVariables.cpp:679: warning: unused variable 'removed'</div><div><br></div><div>Reassociate.cpp: In member function 'void<unnamed>::Reassociate::LinearizeExprTree(llvm::BinaryOperator*, std::vector<<unnamed>::ValueEntry, std::allocator<<unnamed>::ValueEntry> >&)':</div>
<div>Reassociate.cpp:283: warning: unused variable 'Success'</div><div><br></div><div>LowerSubregs.cpp: In member function 'bool<unnamed>::LowerSubregsInstructionPass::LowerInsert(llvm::MachineInstr*)':</div>
<div>LowerSubregs.cpp:155: warning: unused variable 'SrcReg'</div><div><br></div><div>ARMConstantIslandPass.cpp:709: warning: 'bool BBIsJumpedOver(llvm::MachineBasicBlock*)' defined but not used</div><div>
<br></div><div>MachOWriter.cpp: In member function 'void llvm::MachOCodeEmitter::emitConstantPool(llvm::MachineConstantPool*)':</div><div>MachOWriter.cpp:267: warning: unused variable 'isPIC'</div><div>MachOWriter.cpp: In member function 'void llvm::MachOCodeEmitter::emitJumpTables(llvm::MachineJumpTableInfo*)':</div>
<div>MachOWriter.cpp:308: warning: unused variable 'isPIC'</div><div><br></div><div>Reassociate.cpp: At global scope:</div><div>Reassociate.cpp:58: warning: 'void PrintOps(llvm::Instruction*, const std::vector<<unnamed>::ValueEntry, std::allocator<<unnamed>::ValueEntry> >&)' defined but not used</div>
<div><br></div><div>SCCP.cpp: In member function 'virtual bool<unnamed>::IPSCCP::runOnModule(llvm::Module&)':</div><div>SCCP.cpp:1794: warning: unused variable 'SI'</div><div>SCCP.cpp:1791: warning: unused variable 'BI'</div>
<div><br></div><div>MipsISelDAGToDAG.cpp: In member function 'llvm::SDNode*<unnamed>::MipsDAGToDAGISel::Select(llvm::SDValue)':</div><div>MipsISelDAGToDAG.cpp:221: warning: unused variable 'Opc'</div>
<div><br></div><div>PredicateSimplifier.cpp:346: warning: 'bool<unnamed>::validPredicate(<unnamed>::LatticeVal)' defined but not used</div><div><br></div><div>MipsInstrInfo.cpp: In member function 'virtual llvm::MachineInstr* llvm::MipsInstrInfo::foldMemoryOperand(llvm::MachineFunction&, llvm::MachineInstr*, const llvm::SmallVectorImpl<unsigned int>&, int) const':</div>
<div>MipsInstrInfo.cpp:317: warning: 'LoadOpc' may be used uninitialized in this function</div><div>MipsInstrInfo.cpp:317: warning: 'StoreOpc' may be used uninitialized in this function</div><div>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':</div>
<div>MipsInstrInfo.cpp:255: warning: 'Opc' may be used uninitialized in this function</div><div>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':</div>
<div>MipsInstrInfo.cpp:204: warning: 'Opc' may be used uninitialized in this function</div><div>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':</div>
<div>MipsInstrInfo.cpp:184: warning: 'Opc' may be used uninitialized in this function</div><div>MipsInstrInfo.cpp: In member function 'virtual void llvm::MipsInstrInfo::loadRegFromStackSlot(llvm::MachineBasicBlock&, llvm::ilist_iterator<llvm::MachineInstr>, unsigned int, int, const llvm::TargetRegisterClass*) const':</div>
<div>MipsInstrInfo.cpp:236: warning: 'Opc' may be used uninitialized in this function</div><div><br></div><div>ARMISelLowering.cpp: In member function 'llvm::SDValue llvm::ARMTargetLowering::LowerCALL(llvm::SDValue, llvm::SelectionDAG&)':</div>
<div>ARMISelLowering.cpp:406: warning: unused variable 'CallConv'</div><div><br></div><div>SPUAsmPrinter.cpp: In member function 'void<unnamed>::SPUAsmPrinter::printMemRegImmS10(const llvm::MachineInstr*, unsigned int)':</div>
<div>SPUAsmPrinter.cpp:188: warning: unused variable 'MO'</div><div><br></div><div>DarwinTargetAsmInfo.cpp: In member function 'virtual const llvm::Section* llvm::DarwinTargetAsmInfo::SelectSectionForGlobal(const llvm::GlobalValue*) const':</div>
<div>DarwinTargetAsmInfo.cpp:111: warning: control reaches end of non-void function</div><div><br></div><div>ELFTargetAsmInfo.cpp: In member function 'virtual const llvm::Section* llvm::ELFTargetAsmInfo::SelectSectionForGlobal(const llvm::GlobalValue*) const':</div>
<div>ELFTargetAsmInfo.cpp:89: warning: control reaches end of non-void function</div><div><br></div><div>RegAllocSimple.cpp: In member function 'unsigned int<unnamed>::RegAllocSimple::getFreeReg(unsigned int)':</div>
<div>RegAllocSimple.cpp:125: warning: unused variable 'RE'</div><div><br></div><div>TargetAsmInfo.cpp: In member function 'virtual std::string llvm::TargetAsmInfo::UniqueSectionForGlobal(const llvm::GlobalValue*, llvm::SectionKind::Kind) const':</div>
<div>TargetAsmInfo.cpp:344: warning: control reaches end of non-void function</div><div><br></div><div>RegisterScavenging.cpp:146: warning: 'bool isLiveInButUnusedBefore(unsigned int, llvm::MachineInstr*, llvm::MachineBasicBlock*, const llvm::TargetRegisterInfo*, llvm::MachineRegisterInfo*)' defined but not used</div>
<div><br></div><div>SimpleRegisterCoalescing.cpp: In member function 'bool llvm::SimpleRegisterCoalescing::SimpleJoin(llvm::LiveInterval&, llvm::LiveInterval&)':</div><div>SimpleRegisterCoalescing.cpp:1645: warning: 'LHSValNo' may be used uninitialized in this function</div>
<div>--</div><div><br></div><div> - Daniel</div><div><br></div>