Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for Deadcode (0.17 sec)

  1. src/cmd/link/internal/ld/deadcode.go

    		if exportsIdx != 0 {
    			relocs := d.ldr.Relocs(exportsIdx)
    			for i := 0; i < relocs.Count(); i++ {
    				d.mark(relocs.At(i).Sym(), 0)
    			}
    		}
    	}
    
    	if d.ctxt.Debugvlog > 1 {
    		d.ctxt.Logf("deadcode start names: %v\n", names)
    	}
    
    	for _, name := range names {
    		// Mark symbol as a data/ABI0 symbol.
    		d.mark(d.ldr.Lookup(name, 0), 0)
    		if abiInternalVer != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 14:52:41 UTC 2024
    - 19K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/compile.go

    	{name: "late lower", fn: lateLower, required: true},
    	{name: "lowered deadcode for cse", fn: deadcode}, // deadcode immediately before CSE avoids CSE making dead values live again
    	{name: "lowered cse", fn: cse},
    	{name: "elim unread autos", fn: elimUnreadAutos},
    	{name: "tighten tuple selectors", fn: tightenTupleSelectors, required: true},
    	{name: "lowered deadcode", fn: deadcode, required: true},
    	{name: "checkLower", fn: checkLower, required: true},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 14:55:18 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/nilcheck_test.go

    		Bloc("extra",
    			Goto("exit")),
    		Bloc("exit",
    			Exit("mem")))
    
    	CheckFunc(fun.f)
    	nilcheckelim(fun.f)
    
    	// clean up the removed nil check
    	fuse(fun.f, fuseTypePlain)
    	deadcode(fun.f)
    
    	CheckFunc(fun.f)
    	for _, b := range fun.f.Blocks {
    		if b == fun.blocks["secondCheck"] && isNilCheck(b) {
    			t.Errorf("secondCheck was not eliminated")
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 23:34:11 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  4. src/cmd/link/internal/ld/main.go

    		addlibpath(ctxt, "command line", "command line", flag.Arg(0), "main", "", zerofp)
    	}
    	bench.Start("loadlib")
    	ctxt.loadlib()
    
    	bench.Start("inittasks")
    	ctxt.inittasks()
    
    	bench.Start("deadcode")
    	deadcode(ctxt)
    
    	bench.Start("linksetup")
    	ctxt.linksetup()
    
    	bench.Start("dostrdata")
    	ctxt.dostrdata()
    	if buildcfg.Experiment.FieldTrack {
    		bench.Start("fieldtrack")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:59:50 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  5. src/cmd/link/internal/ld/ld_test.go

    	}
    }
    
    // TestMemProfileCheck tests that cmd/link sets
    // runtime.disableMemoryProfiling if the runtime.MemProfile
    // symbol is unreachable after deadcode (and not dynlinking).
    // The runtime then uses that to set the default value of
    // runtime.MemProfileRate, which this test checks.
    func TestMemProfileCheck(t *testing.T) {
    	testenv.MustHaveGoBuild(t)
    	t.Parallel()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 05:45:53 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/transforms/push_transpose_through_ewise.cc

    //    iff tpose(x) or tpose(y) has one use and have same permutation.
    //
    // Proof:
    // WLOG, let tpose(x) have 1 use. Then ewise is the only user, and removing
    // its use of tpose(x) will render tpose(x) deadcode. So in this case
    // we both remove 1 and add 1 transpose to the graph thus the number remains
    // unchanged.
    class CommuteBothInputsTransposedWithEwiseOps : public RewritePattern {
     public:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  7. src/cmd/link/internal/ld/go.go

    				nerrors++
    				return
    			}
    
    			// Mark exported symbols and also add them to
    			// the lists used for roots in the deadcode pass.
    			if f[0] == "cgo_export_static" {
    				if ctxt.LinkMode == LinkExternal && !l.AttrCgoExportStatic(s) {
    					// Static cgo exports appear
    					// in the exported symbol table.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 22 16:48:30 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  8. src/cmd/internal/test2json/testdata/vet.json

    {"Action":"pass","Test":"TestVet/1"}
    {"Action":"output","Test":"TestVet/7","Output":"    --- PASS: TestVet/7 (0.19s)\n"}
    {"Action":"output","Test":"TestVet/7","Output":"        vet_test.go:114: files: [\"testdata/deadcode.go\" \"testdata/shift.go\"]\n"}
    {"Action":"pass","Test":"TestVet/7"}
    {"Action":"pass","Test":"TestVet"}
    {"Action":"output","Test":"TestVetDirs","Output":"--- PASS: TestVetDirs (0.01s)\n"}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 09 17:33:07 UTC 2022
    - 11.8K bytes
    - Viewed (0)
  9. src/cmd/vet/vet_test.go

    }
    
    func TestVet(t *testing.T) {
    	t.Parallel()
    	for _, pkg := range []string{
    		"appends",
    		"asm",
    		"assign",
    		"atomic",
    		"bool",
    		"buildtag",
    		"cgo",
    		"composite",
    		"copylock",
    		"deadcode",
    		"directive",
    		"httpresponse",
    		"lostcancel",
    		"method",
    		"nilfunc",
    		"print",
    		"shift",
    		"slog",
    		"structtag",
    		"testingpkg",
    		// "testtag" has its own test
    		"unmarshal",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 01:02:40 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssagen/pgen.go

    	for _, ln := range fn.Dcl {
    		if ln.OpenDeferSlot() {
    			// Open-coded defer slots have indices that were assigned
    			// upfront during SSA construction, but the defer statement can
    			// later get removed during deadcode elimination (#61895). To
    			// keep their relative offsets correct, treat them all as used.
    			continue
    		}
    
    		if needAlloc(ln) {
    			ln.SetUsed(false)
    		}
    	}
    
    	for _, l := range f.RegAlloc {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:44:14 UTC 2024
    - 13.1K bytes
    - Viewed (0)
Back to top