https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118598

--- Comment #7 from Avinash Jayakar <avinashd at gcc dot gnu.org> ---
On the trunk, with or without the PROMOTE_MODE macro in rs6000, the issue still
exists.
In the pro_and_epilogue pass,
Block 3 needs prologue due to insn 194:
(insn 194 10 11 3 (set (reg/v:DI 31 %r31 [orig:118 a ] [118])
        (reg:DI 3 %r3 [orig:138 a ] [138])) -1
     (nil))

and it happens when you have a function call, on something like this:
void foo (long long a)
{
  long long i;
  volatile int x;
  if (a == 42)
    return;
  for (i = 0; i < a; i++)
    x = a + i;
}
it does shrink-wrap as expected.

Reply via email to