From patchwork Thu Jul 15 20:35:15 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [ARM] : Remove superfluous test in arm_function_arg Date: Thu, 15 Jul 2010 10:35:15 -0000 From: John Tytgat X-Patchwork-Id: 59043 Message-Id: <678f613751.Jo@hobbes.bass-software.com> To: gcc-patches@gcc.gnu.org Attached patch removes in arm_function_arg() a superfluous test on one of its parameters as that test is already done at the beginning of the routine and the parameter doesn't change during the function. John Tytgat * config/arm/arm.c (arm_function_arg): Remove superfluous test. Please commit after positive review. John. Index: config/arm/arm.c =================================================================== --- config/arm/arm.c (revision 162199) +++ config/arm/arm.c (working copy) @@ -4479,10 +4479,6 @@ && arm_needs_doubleword_align (mode, type)) pcum->nregs++; - if (mode == VOIDmode) - /* Pick an arbitrary value for operand 2 of the call insn. */ - return const0_rtx; - /* Only allow splitting an arg between regs and memory if all preceding args were allocated to regs. For args passed by reference we only count the reference pointer. */