- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for needRegister (0.25 sec)
-
src/cmd/compile/internal/ssa/tighten.go
} // Count arguments which will need a register. narg := 0 for _, a := range v.Args { // SP and SB are special registers and have no effect on // the allocation of general-purpose registers. if a.needRegister() && a.Op != OpSB && a.Op != OpSP { narg++ } } if narg >= 2 && !v.Type.IsFlags() { // Don't move values with more than one input, as that may // increase register pressure.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 16 01:01:38 UTC 2023 - 7.7K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/regalloc.go
// tail call is not counted as it does not save the return PC or need a frame return false } } } return true } // needRegister reports whether v needs a register. func (v *Value) needRegister() bool { return !v.Type.IsMemory() && !v.Type.IsVoid() && !v.Type.IsFlags() && !v.Type.IsTuple() } func (s *regAllocState) init(f *Func) { s.f = f
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 21 17:49:56 UTC 2023 - 87.2K bytes - Viewed (0)