On Tue, Nov 05, 2024 at 02:47:15PM +0100, Uros Bizjak wrote: > We would have to define a memory clobber that would correspond to > redzone and attach it to the asm parallel RTX, perhaps: > > (clobber (mem:BLK (reg:DI sp)))
That wouldn't represent what is actually clobbered. That says everything from sp up is clobbered, while red zone clobber means everything below it is, so it could be (clobber (mem:BLK (plus:DI (reg:DI sp) (const_int -red_zone_size)))) with the appropriate red_zone_size as MEM_SIZE. > > that would ultimately clear "crtl->is_leaf" when detected. Jakub