Jonas Paulsson

Results comments of Jonas Paulsson

[reduced testcase](https://user-images.githubusercontent.com/55128014/143755481-168448f8-19e9-47e3-9601-c05e9ba321fb.gz) Thank you Wei. I am now down to 850. Attaching next test case for you.

Currently, on SPEC-2006/SystemZ, total number (regardless of loops) of spill /reload instructions go up with ~1%. Total number of spill / reload instruction in innermost loops however go down with...

Thanks - with the second version some additional ~50 loops got handled, so there are still ~1000 loops to go...

> > There is no reloaded hoisting in current regalloc > > There is a `MachineLICM` pass scheduled after regalloc I always assumed it > exists to hoist reloads/rematerialized values...

> There is no reloaded hoisting in current regalloc, because when you hoist > the reload, you increase the live range of the temporary var and it raises a >...

[test case with regsplit patch applied (both spills and reloads)](https://user-images.githubusercontent.com/55128014/143755484-0235c751-ca27-4a5b-a3d1-2fa29fc66ec2.gz) .LBB0_22: # %for.body383.i # Parent Loop BB0_13 Depth=1 # => This Inner Loop Header: Depth=2 sllg %r2, %r6, 0(%r10) ngr...

[test case with regsplit patch applied](https://user-images.githubusercontent.com/55128014/143755485-07477aef-2729-4a36-82d1-d0921889439d.gz) .LBB0_16: # %while.body.us152 # =>This Inner Loop Header: Depth=1 llgc %r12, 1(%r10,%r2) lgr %r9, %r11 rosbg %r9, %r12, 58, 63, 0 clgrjle %r9, %r1,...

[test case with regsplit patch applied](https://user-images.githubusercontent.com/55128014/143755486-ac7d1682-f368-4b86-8740-e895727dfb05.gz) Inner loop: l %r0, 180(%r15) # 4-byte Folded Reload ark %r0, %r0, %r2 %r4 is unused in inner loop.

I applied the patch, and found that about half of the cases were gone. Of the remaining half, it seems still to be mainly the case where a big LiveInterval...

Thanks Wei, very interesting to hear that you have the same problem... Did that patch mainly handle cases where there are not sufficient regs in the loop itself? I think...