On 11/2/22 07:54, Manolis Tsamis wrote:

I've revisited this testcase and I think it's not possible to make it
work with the current implementation.
It's not possible to trigger shrink wrapping in this case since the
wrapping of registers is guarded by
  if (SMALL_OPERAND (offset)) { bitmap_set_bit (components, regno); }
Hence if a long stack is generated we get no shrink wrapping.

I also tried to remove that restriction but it looks like it can't
work because we can't create
pseudo-registers during shrink wrapping and shrink wrapping can't work either.

I believe this means that shrink wrapping cannot interfere with a long
stack frame
so there is nothing to test against in this case?

It'd be marginally better to have such a test case to ensure we don't shrink wrap it -- that would ensure that someone doesn't accidentally introduce shrink wrapping with large offsets.   Just a bit of future proofing.


Jeff


Reply via email to