mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-05 12:31:33 +00:00
Remove a bunch of unused variables in the PTX backend (warned about by gcc-4.6).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141182 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6478bdce01
commit
37f80658b3
@ -237,36 +237,22 @@ SDValue PTXTargetLowering::
|
||||
for (unsigned i = 0, e = Ins.size(); i != e; ++i) {
|
||||
EVT RegVT = Ins[i].VT;
|
||||
TargetRegisterClass* TRC = 0;
|
||||
int OpCode;
|
||||
|
||||
// Determine which register class we need
|
||||
if (RegVT == MVT::i1) {
|
||||
if (RegVT == MVT::i1)
|
||||
TRC = PTX::RegPredRegisterClass;
|
||||
OpCode = PTX::READPARAMPRED;
|
||||
}
|
||||
else if (RegVT == MVT::i16) {
|
||||
else if (RegVT == MVT::i16)
|
||||
TRC = PTX::RegI16RegisterClass;
|
||||
OpCode = PTX::READPARAMI16;
|
||||
}
|
||||
else if (RegVT == MVT::i32) {
|
||||
else if (RegVT == MVT::i32)
|
||||
TRC = PTX::RegI32RegisterClass;
|
||||
OpCode = PTX::READPARAMI32;
|
||||
}
|
||||
else if (RegVT == MVT::i64) {
|
||||
else if (RegVT == MVT::i64)
|
||||
TRC = PTX::RegI64RegisterClass;
|
||||
OpCode = PTX::READPARAMI64;
|
||||
}
|
||||
else if (RegVT == MVT::f32) {
|
||||
else if (RegVT == MVT::f32)
|
||||
TRC = PTX::RegF32RegisterClass;
|
||||
OpCode = PTX::READPARAMF32;
|
||||
}
|
||||
else if (RegVT == MVT::f64) {
|
||||
else if (RegVT == MVT::f64)
|
||||
TRC = PTX::RegF64RegisterClass;
|
||||
OpCode = PTX::READPARAMF64;
|
||||
}
|
||||
else {
|
||||
else
|
||||
llvm_unreachable("Unknown parameter type");
|
||||
}
|
||||
|
||||
// Use a unique index in the instruction to prevent instruction folding.
|
||||
// Yes, this is a hack.
|
||||
@ -275,10 +261,6 @@ SDValue PTXTargetLowering::
|
||||
SDValue ArgValue = DAG.getNode(PTXISD::READ_PARAM, dl, RegVT, Chain,
|
||||
Index);
|
||||
|
||||
SDValue Flag = ArgValue.getValue(1);
|
||||
|
||||
SDValue Copy = DAG.getCopyFromReg(Chain, dl, Reg, RegVT);
|
||||
SDValue RegValue = DAG.getRegister(Reg, RegVT);
|
||||
InVals.push_back(ArgValue);
|
||||
|
||||
MFI->addArgReg(Reg);
|
||||
|
Loading…
Reference in New Issue
Block a user