+2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
+
+ * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
+ return_in_pc. Remove redundant assignments.
+ (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
+ (arm_expand_epilogue): Don't compare boolean with true in if condition.
+
2015-01-29 Uros Bizjak <ubizjak@gmail.com>
* config/i386/i386.c (ix86_mode_after): Make static.
rtx par;
rtx dwarf = NULL_RTX;
rtx tmp, reg;
- bool return_in_pc;
+ bool return_in_pc = saved_regs_mask & (1 << PC_REGNUM);
int offset_adj;
int emit_update;
- return_in_pc = (saved_regs_mask & (1 << PC_REGNUM)) ? true : false;
offset_adj = return_in_pc ? 1 : 0;
for (i = 0; i <= LAST_ARM_REGNUM; i++)
if (saved_regs_mask & (1 << i))
par = gen_rtx_PARALLEL (VOIDmode, rtvec_alloc (num_regs + emit_update + offset_adj));
if (return_in_pc)
- {
- tmp = ret_rtx;
- XVECEXP (par, 0, 0) = tmp;
- }
+ XVECEXP (par, 0, 0) = ret_rtx;
if (emit_update)
{
rtx par = NULL_RTX;
rtx dwarf = NULL_RTX;
rtx tmp, reg, tmp1;
- bool return_in_pc;
+ bool return_in_pc = saved_regs_mask & (1 << PC_REGNUM);
- return_in_pc = (saved_regs_mask & (1 << PC_REGNUM)) ? true : false;
for (i = 0; i <= LAST_ARM_REGNUM; i++)
if (saved_regs_mask & (1 << i))
num_regs++;
arm_emit_multi_reg_pop (saved_regs_mask);
}
- if (return_in_pc == true)
+ if (return_in_pc)
return;
}