Chromium Code Reviews| Index: src/IceTargetLoweringARM32.cpp |
| diff --git a/src/IceTargetLoweringARM32.cpp b/src/IceTargetLoweringARM32.cpp |
| index 10fdfe12a1b4a6f7c1b9a6bb334caa0e5d8530bb..ec22bbf2b0f8bed5003a02240ad72d0353d07990 100644 |
| --- a/src/IceTargetLoweringARM32.cpp |
| +++ b/src/IceTargetLoweringARM32.cpp |
| @@ -27,7 +27,12 @@ |
| #include "IceRegistersARM32.h" |
| #include "IceTargetLoweringARM32.def" |
| #include "IceUtils.h" |
| + |
| +#pragma clang diagnostic push |
| +#pragma clang diagnostic ignored "-Wunused-parameter" |
| +#pragma clang diagnostic ignored "-Wshadow" |
| #include "llvm/Support/MathExtras.h" |
| +#pragma clang diagnostic pop |
| namespace Ice { |
| @@ -1262,7 +1267,7 @@ void TargetARM32::lowerArithmetic(const InstArithmetic *Inst) { |
| // On ARM, shifts only take the lower 8 bits of the shift register, |
| // and saturate to the range 0-32, so the negative value will |
| // saturate to 32. |
| - Variable *T_Hi = makeReg(IceType_i32); |
| + T_Hi = makeReg(IceType_i32); |
|
jvoung (off chromium)
2015/07/13 22:40:43
oops, T_Hi and T_Lo should already be temp regs fr
Jim Stichnoth
2015/07/13 23:01:04
Good point. I kept the assignment because 1174/11
|
| Variable *Src1RLo = legalizeToVar(Src1Lo); |
| Constant *ThirtyTwo = Ctx->getConstantInt32(32); |
| Variable *T_C1 = makeReg(IceType_i32); |
| @@ -1275,7 +1280,7 @@ void TargetARM32::lowerArithmetic(const InstArithmetic *Inst) { |
| _orr(T_Hi, T_Hi, OperandARM32FlexReg::create(Func, IceType_i32, Src0RLo, |
| OperandARM32::LSR, T_C2)); |
| _mov(DestHi, T_Hi); |
| - Variable *T_Lo = makeReg(IceType_i32); |
| + T_Lo = makeReg(IceType_i32); |
| // _mov seems to sometimes have better register preferencing than lsl. |
| // Otherwise mov w/ lsl shifted register is a pseudo-instruction |
| // that maps to lsl. |
| @@ -1301,7 +1306,7 @@ void TargetARM32::lowerArithmetic(const InstArithmetic *Inst) { |
| // and the next orr should be conditioned on PLUS. The last two |
| // right shifts should also be arithmetic. |
| bool IsAshr = Inst->getOp() == InstArithmetic::Ashr; |
| - Variable *T_Lo = makeReg(IceType_i32); |
| + T_Lo = makeReg(IceType_i32); |
|
jvoung (off chromium)
2015/07/13 22:40:43
same
Jim Stichnoth
2015/07/13 23:01:04
Done.
|
| Variable *Src1RLo = legalizeToVar(Src1Lo); |
| Constant *ThirtyTwo = Ctx->getConstantInt32(32); |
| Variable *T_C1 = makeReg(IceType_i32); |
| @@ -1325,7 +1330,7 @@ void TargetARM32::lowerArithmetic(const InstArithmetic *Inst) { |
| RShiftKind, T_C2), |
| Pred); |
| _mov(DestLo, T_Lo); |
| - Variable *T_Hi = makeReg(IceType_i32); |
| + T_Hi = makeReg(IceType_i32); |
| _mov(T_Hi, OperandARM32FlexReg::create(Func, IceType_i32, Src0RHi, |
| RShiftKind, Src1RLo)); |
| _mov(DestHi, T_Hi); |
| @@ -1662,7 +1667,6 @@ void TargetARM32::lowerCall(const InstCall *Instr) { |
| if (ParameterAreaSizeBytes) { |
| Operand *AddAmount = legalize(Ctx->getConstantInt32(ParameterAreaSizeBytes), |
| Legal_Reg | Legal_Flex); |
| - Variable *SP = getPhysicalRegister(RegARM32::Reg_sp); |
| _add(SP, SP, AddAmount); |
| } |
| @@ -1808,7 +1812,6 @@ void TargetARM32::lowerCast(const InstCast *Inst) { |
| if (isVectorType(Dest->getType())) { |
| UnimplementedError(Func->getContext()->getFlags()); |
| } else { |
| - Operand *Src0 = Inst->getSrc(0); |
| if (Src0->getType() == IceType_i64) |
| Src0 = loOperand(Src0); |
| Operand *Src0RF = legalize(Src0, Legal_Reg | Legal_Flex); |
| @@ -1842,7 +1845,6 @@ void TargetARM32::lowerCast(const InstCast *Inst) { |
| break; |
| } |
| case InstCast::Bitcast: { |
| - Operand *Src0 = Inst->getSrc(0); |
| if (Dest->getType() == Src0->getType()) { |
| InstAssign *Assign = InstAssign::create(Func, Dest, Src0); |
| lowerAssign(Assign); |