llvm.org GIT mirror llvm / c040719
Revert r112461. It was failing on PPC... git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112463 91177308-0d34-0410-b5e6-96231b3b80d8 Bill Wendling 10 years ago
1 changed file(s) with 2 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
252252 return I->second;
253253 }
254254
255
255256 /// AddRegisterOperand - Add the specified register as an operand to the
256257 /// specified machine instr. Insert register copies if the register is
257258 /// not in the required register class.
335336 const ConstantFP *CFP = F->getConstantFPValue();
336337 MI->addOperand(MachineOperand::CreateFPImm(CFP));
337338 } else if (RegisterSDNode *R = dyn_cast(Op)) {
338 unsigned Reg = R->getReg();
339 const TargetInstrDesc &TID = MI->getDesc();
340 MI->addOperand(MachineOperand::CreateReg(Reg,
341 (Reg == 0 || !TID.OpInfo) ? false : TID.OpInfo[IIOpNum].isOptionalDef()));
339 MI->addOperand(MachineOperand::CreateReg(R->getReg(), false));
342340 } else if (GlobalAddressSDNode *TGA = dyn_cast(Op)) {
343341 MI->addOperand(MachineOperand::CreateGA(TGA->getGlobal(), TGA->getOffset(),
344342 TGA->getTargetFlags()));