Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 103 for unnecessary (0.49 sec)

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

    var faultOnLoad = buildcfg.GOOS != "aix"
    
    // nilcheckelim2 eliminates unnecessary nil checks.
    // Runs after lowering and scheduling.
    func nilcheckelim2(f *Func) {
    	unnecessary := f.newSparseMap(f.NumValues()) // map from pointer that will be dereferenced to index of dereferencing value in b.Values[]
    	defer f.retSparseMap(unnecessary)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 20:45:54 UTC 2023
    - 11.3K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/typecheck/iexport.go

    // binary export data format. Its chief contribution is introducing an
    // index table, which allows efficient random access of individual
    // declarations and inline function bodies. In turn, this allows
    // avoiding unnecessary work for compilation units that import large
    // packages.
    //
    //
    // The top-level data format is structured as:
    //
    //     Header struct {
    //         Tag        byte   // 'i'
    //         Version    uvarint
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 21 02:40:02 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/context.go

    	assert(orig != nil)
    	var buf bytes.Buffer
    
    	h := newTypeHasher(&buf, ctxt)
    	h.string(strconv.Itoa(ctxt.getID(orig)))
    	// Because we've already written the unique origin ID this call to h.typ is
    	// unnecessary, but we leave it for hash readability. It can be removed later
    	// if performance is an issue.
    	h.typ(orig)
    	if len(targs) > 0 {
    		// TODO(rfindley): consider asserting on isGeneric(typ) here, if and when
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 17:29:21 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  4. src/cmd/go/internal/mvs/mvs.go

    // correctly.
    func Downgrade(target module.Version, reqs DowngradeReqs, downgrade ...module.Version) ([]module.Version, error) {
    	// Per https://research.swtch.com/vgo-mvs#algorithm_4:
    	// “To avoid an unnecessary downgrade to E 1.1, we must also add a new
    	// requirement on E 1.2. We can apply Algorithm R to find the minimal set of
    	// new requirements to write to go.mod.”
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 21:58:12 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  5. src/cmd/go/internal/modload/import.go

    // allows 'go mod tidy' to preserve a minor checksum-preservation bug
    // (https://go.dev/issue/56222) for modules with 'go' versions between 1.17 and
    // 1.20, preventing unnecessary go.sum churn and network access in those
    // modules.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 15:21:14 UTC 2024
    - 27.7K bytes
    - Viewed (0)
  6. src/cmd/distpack/pack.go

    	binArch.SetMode(mode)        // fix added files
    
    	zipArch := binArch.Clone()
    	zipArch.AddPrefix("go")
    	testZip(zipArch)
    
    	// The module distribution is the binary distribution with unnecessary files removed
    	// and file names using the necessary prefix for the module.
    	modArch := binArch.Clone()
    	modArch.Remove(
    		"api/**",
    		"doc/**",
    		"misc/**",
    		"test/**",
    	)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/looprotate.go

    // license that can be found in the LICENSE file.
    
    package ssa
    
    // loopRotate converts loops with a check-loop-condition-at-beginning
    // to loops with a check-loop-condition-at-end.
    // This helps loops avoid extra unnecessary jumps.
    //
    //	 loop:
    //	   CMPQ ...
    //	   JGE exit
    //	   ...
    //	   JMP loop
    //	 exit:
    //
    //	  JMP entry
    //	loop:
    //	  ...
    //	entry:
    //	  CMPQ ...
    //	  JLT loop
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:44:14 UTC 2024
    - 3K bytes
    - Viewed (0)
  8. src/archive/tar/writer.go

    	io.Writer
    	fileState
    
    	ReadFrom(io.Reader) (int64, error)
    }
    
    // Flush finishes writing the current file's block padding.
    // The current file must be fully written before Flush can be called.
    //
    // This is unnecessary as the next call to [Writer.WriteHeader] or [Writer.Close]
    // will implicitly flush out the file's padding.
    func (tw *Writer) Flush() error {
    	if tw.err != nil {
    		return tw.err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/typeset.go

    	// let any follow-on errors play out.
    	//
    	// TODO(gri) Consider recording when this happens and reporting
    	// it as an error (but only if there were no other errors so to
    	// to not have unnecessary follow-on errors).
    	if !ityp.complete {
    		return &topTypeSet
    	}
    
    	if check != nil && check.conf.Trace {
    		// Types don't generally have position information.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/named.go

    	// match. Since type reference cycles are only possible within a single
    	// package, this is sufficient for the purposes of short-circuiting cycles.
    	// Avoiding passing the context in other cases prevents unnecessary coupling
    	// of types across packages.
    	if expanding != nil && expanding.Obj().pkg == obj.pkg {
    		inst.ctxt = expanding.inst.ctxt
    	}
    	typ := &Named{check: check, obj: obj, inst: inst}
    	obj.typ = typ
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 23.9K bytes
    - Viewed (0)
Back to top