Closed blackgeorge-boom closed 10 months ago
Could it be that there is an optimization happening later that does not update the stackmaps?
The problem was that this code was passing %rnorm
as a parameter to conj_grad
, hence that stack slot was indeed a live value (%stack.0.rnorm
), but we were never initializing it! That's why we couldn't see a store instruction in either of the assemblies, but there were these instructions:
5010ec: add x0, sp, #0x8
and
5010ec: lea rdi,[rbp-0x20]
No spills are shown in the actual assembly.