82// x is now a spilled value and a restore must appear before its first use.
83
84▶// TODO
85
86// Use an affinity graph to mark two values which should use the
· · ·
110// of x3 not dominated by the definition of x3, and the CX->BX copy
111// will have no use (so don't run deadcode after regalloc!).
112▶// TODO: maybe we should introduce these extra phis?
113
114package ssacompile
· · ·
297type endReg struct {
298 r ssaop.Register
299▶ v *ssa.Value // pre-regalloc value held in this register (TODO: can we use ID here?)
300 c *ssa.Value // cached version of the value
301}
· · ·
407 // Pick a value to spill. Spill the value with the
408 // farthest-in-the-future use.
409▶ // TODO: Prefer registers with already spilled Values?
410 // TODO: Modify preference using affinity graph.
411 // TODO: if a single value is in multiple registers, spill one of them
· · ·
410▶ // TODO: Modify preference using affinity graph.
411 // TODO: if a single value is in multiple registers, spill one of them
412 // before spilling a value in just a single register.
+ 17 more matches in this file