Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for calculateDepths (0.17 sec)

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

    	// approximate x dying with:
    	//  1) target is x's only use.
    	//  2) target is not in a deeper loop than x.
    	if x.Uses != 1 {
    		return false
    	}
    	loopnest := x.Block.Func.loopnest()
    	loopnest.calculateDepths()
    	if loopnest.depth(target.Block.ID) > loopnest.depth(x.Block.ID) {
    		return false
    	}
    	return canMergeLoad(target, load)
    }
    
    // canMergeLoad reports whether the load can be merged into target without
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 64.2K bytes
    - Viewed (0)
Back to top