Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for invalidateRecursively (0.17 sec)

  1. src/cmd/compile/internal/ssa/value.go

    //
    // BEWARE of doing this *before* you've applied intended
    // updates to SSA.
    func (v *Value) invalidateRecursively() bool {
    	lostStmt := v.Pos.IsStmt() == src.PosIsStmt
    	if v.InCache {
    		v.Block.Func.unCache(v)
    	}
    	v.Op = OpInvalid
    
    	for _, a := range v.Args {
    		a.Uses--
    		if a.Uses == 0 {
    			lost := a.invalidateRecursively()
    			lostStmt = lost || lostStmt
    		}
    	}
    
    	v.argstorage[0] = nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:40:22 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/expand_calls.go

    }
    
    func (x *expandState) invalidateRecursively(a *Value) {
    	var s string
    	if x.debug > 0 {
    		plus := " "
    		if a.Pos.IsStmt() == src.PosIsStmt {
    			plus = " +"
    		}
    		s = a.String() + plus + a.Pos.LineNumber() + " " + a.LongString()
    		if x.debug > 1 {
    			x.Printf("...marking %v unused\n", s)
    		}
    	}
    	lost := a.invalidateRecursively()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 28 05:13:40 UTC 2023
    - 31.9K bytes
    - Viewed (0)
Back to top