llvm.org GIT mirror llvm / b7c5bdf
Remove some unused variables and methods warned about by icc (#177, partial). Patch by Erick Tryzelaar. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81106 91177308-0d34-0410-b5e6-96231b3b80d8 Duncan Sands 11 years ago
9 changed file(s) with 2 addition(s) and 15 deletion(s). Raw diff Collapse all Expand all
44804480 if (Op0.getOpcode() == ISD::AND &&
44814481 Op0.hasOneUse() &&
44824482 Op1.getOpcode() == ISD::Constant) {
4483 SDValue AndOp0 = Op0.getOperand(0);
44844483 SDValue AndOp1 = Op0.getOperand(1);
44854484
44864485 if (AndOp1.getOpcode() == ISD::Constant) {
54045403 SDValue DAGCombiner::visitBUILD_VECTOR(SDNode *N) {
54055404 unsigned NumInScalars = N->getNumOperands();
54065405 EVT VT = N->getValueType(0);
5407 EVT EltType = VT.getVectorElementType();
54085406
54095407 // Check to see if this is a BUILD_VECTOR of a bunch of EXTRACT_VECTOR_ELT
54105408 // operations. If so, and if the EXTRACT_VECTOR_ELT vector inputs come from
55055503 unsigned NumElts = VT.getVectorNumElements();
55065504
55075505 SDValue N0 = N->getOperand(0);
5508 SDValue N1 = N->getOperand(1);
55095506
55105507 assert(N0.getValueType().getVectorNumElements() == NumElts &&
55115508 "Vector shuffle must be normalized in DAG");
11271127 return false;
11281128
11291129 // Back-schedule reloads and remats.
1130 MachineBasicBlock::iterator InsertLoc =
1131 ComputeReloadLoc(MII, MBB.begin(), PhysReg, TRI, false, SS, TII, MF);
1130 ComputeReloadLoc(MII, MBB.begin(), PhysReg, TRI, false, SS, TII, MF);
11321131
11331132 // Load from SS to the spare physical register.
11341133 TII->loadRegFromStackSlot(MBB, MII, PhysReg, SS, RC);
14801480 const APInt& d = *this;
14811481 unsigned p;
14821482 APInt ad, anc, delta, q1, r1, q2, r2, t;
1483 APInt allOnes = APInt::getAllOnesValue(d.getBitWidth());
14841483 APInt signedMin = APInt::getSignedMinValue(d.getBitWidth());
1485 APInt signedMax = APInt::getSignedMaxValue(d.getBitWidth());
14861484 struct ms mag;
14871485
14881486 ad = d.abs();
736736 // Darwin ABI requires FP to point to the stack slot that contains the
737737 // previous FP.
738738 if (STI.isTargetDarwin() || hasFP(MF)) {
739 MachineInstrBuilder MIB =
740 BuildMI(MBB, MBBI, dl, TII.get(ARM::tADDrSPi), FramePtr)
739 BuildMI(MBB, MBBI, dl, TII.get(ARM::tADDrSPi), FramePtr)
741740 .addFrameIndex(FramePtrSpillFI).addImm(0);
742741 }
743742
16771677 E = ModulePtr->global_end(); I!=E; ++I) {
16781678 if (!I->isDeclaration() || !I->hasDLLImportLinkage()) continue;
16791679 // Use "LoadLibrary"/"GetProcAddress" to recive variable address.
1680 std::string Label = "not_null$_"+utostr(getUniqID());
16811680 std::string Tmp = getTypeName(I->getType())+getValueName(&*I);
16821681 printSimpleInstruction("ldsflda",Tmp.c_str());
16831682 Out << "\tldstr\t\"" << getLibraryName(&*I) << "\"\n";
310310 NumBytes = StackSize - CSSize;
311311
312312 // Skip the callee-saved pop instructions.
313 MachineBasicBlock::iterator LastCSPop = MBBI;
314313 while (MBBI != MBB.begin()) {
315314 MachineBasicBlock::iterator PI = prior(MBBI);
316315 unsigned Opc = PI->getOpcode();
258258 SystemZMachineFunctionInfo *SystemZMFI =
259259 MF.getInfo();
260260 unsigned RetOpcode = MBBI->getOpcode();
261 DebugLoc DL = MBBI->getDebugLoc();
262261
263262 switch (RetOpcode) {
264263 case SystemZ::RET: break; // These are ok
12811281 void writeOperand(const Value *Op, bool PrintType);
12821282 void writeParamOperand(const Value *Operand, Attributes Attrs);
12831283
1284 const Module* getModule() { return TheModule; }
1285
12861284 private:
12871285 void printModule(const Module *M);
12881286 void printTypeSymbolTable(const TypeSymbolTable &ST);
215215 explicit FastISelMap(std::string InstNS);
216216
217217 void CollectPatterns(CodeGenDAGPatterns &CGP);
218 void PrintClass(raw_ostream &OS);
219218 void PrintFunctionDefinitions(raw_ostream &OS);
220219 };
221220