Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 77 for Deadcode (0.16 sec)

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

    			Valu("rstore", OpStore, types.TypeMem, 0, c.config.Types.Int64, "raddr", "r10", "raddrdef"),
    			Goto("exit")),
    		Bloc("exit",
    			Exit("rstore")))
    
    	CheckFunc(fun.f)
    	cse(fun.f)
    	deadcode(fun.f)
    	CheckFunc(fun.f)
    
    	s1Cnt := 2
    	// r1 == r2 == r3, needs to remove two of this set
    	s2Cnt := 1
    	// r4 == r5, needs to remove one of these
    	for k, v := range fun.values {
    		if v.Op == OpInvalid {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:09:14 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/zcse.go

    // function for values with zero arguments to allow the more expensive cse
    // to begin with a reduced number of values. Values are just relinked,
    // nothing is deleted. A subsequent deadcode pass is required to actually
    // remove duplicate expressions.
    func zcse(f *Func) {
    	vals := make(map[vkey]*Value)
    
    	for _, b := range f.Blocks {
    		for i := 0; i < len(b.Values); i++ {
    			v := b.Values[i]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 08 01:46:31 UTC 2020
    - 2.1K bytes
    - Viewed (0)
  3. src/text/template/link_test.go

    	}
    	slurp, err := os.ReadFile(filepath.Join(td, "x.exe"))
    	if err != nil {
    		t.Fatal(err)
    	}
    	if bytes.Contains(slurp, []byte("THIS SHOULD BE ELIMINATED")) {
    		t.Error("binary contains code that should be deadcode eliminated")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 12 21:58:25 UTC 2021
    - 1.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/tests/lower_globals_to_ml_program_invalid.mlir

    }
    
    // -----
    
    module attributes {tf_saved_model.semantics} {
      // expected-error@+1 {{no predecessor}}
      func.func @f() -> () attributes {tf_saved_model.exported_names = ["f"]} {
      ^entry():
        return
      ^deadcode(%0: tensor<!tf_type.resource<tensor<?xf32>>>):
        %ret = "tf.ReadVariableOp"(%0) : (tensor<!tf_type.resource<tensor<?xf32>>>) -> tensor<?xf32>
        return
      }
    }
    
    // -----
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 24 21:57:26 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  5. src/cmd/link/internal/ld/deadcode_test.go

    			[]string{"main.large"}},
    	}
    	for _, test := range tests {
    		test := test
    		t.Run(test.src, func(t *testing.T) {
    			t.Parallel()
    			src := filepath.Join("testdata", "deadcode", test.src+".go")
    			exe := filepath.Join(tmpdir, test.src+".exe")
    			cmd := testenv.Command(t, testenv.GoToolPath(t), "build", "-ldflags=-dumpdep", "-o", exe, src)
    			out, err := cmd.CombinedOutput()
    			if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 15:07:26 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  6. src/cmd/link/internal/ld/heap.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package ld
    
    import "cmd/link/internal/loader"
    
    // Min-heap implementation, for the deadcode pass.
    // Specialized for loader.Sym elements.
    
    type heap []loader.Sym
    
    func (h *heap) push(s loader.Sym) {
    	*h = append(*h, s)
    	// sift up
    	n := len(*h) - 1
    	for n > 0 {
    		p := (n - 1) / 2 // parent
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 14 16:55:22 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  7. src/cmd/internal/test2json/testdata/vet.test

        --- PASS: TestVet/1 (0.07s)
            vet_test.go:114: files: ["testdata/atomic.go" "testdata/lostcancel.go" "testdata/unsafeptr.go"]
        --- PASS: TestVet/7 (0.19s)
            vet_test.go:114: files: ["testdata/deadcode.go" "testdata/shift.go"]
    --- PASS: TestVetDirs (0.01s)
        --- PASS: TestVetDirs/testingpkg (0.06s)
        --- PASS: TestVetDirs/divergent (0.05s)
        --- PASS: TestVetDirs/buildtag (0.06s)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 01 16:13:47 UTC 2020
    - 3.1K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/copyelim.go

    // license that can be found in the LICENSE file.
    
    package ssa
    
    // combine copyelim and phielim into a single pass.
    // copyelim removes all uses of OpCopy values from f.
    // A subsequent deadcode pass is needed to actually remove the copies.
    func copyelim(f *Func) {
    	phielim(f)
    
    	// loop of copyelimValue(v) process has been done in phielim() pass.
    	// Update block control values.
    	for _, b := range f.Blocks {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 14:55:18 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  9. src/cmd/internal/test2json/testdata/smiley.test

        --- PASS: Test☺☹/1 (0.07s)
            vet_test.go:114: φιλεσ: ["testdata/atomic.go" "testdata/lostcancel.go" "testdata/unsafeptr.go"]
        --- PASS: Test☺☹/7 (0.19s)
            vet_test.go:114: φιλεσ: ["testdata/deadcode.go" "testdata/shift.go"]
    --- PASS: Test☺☹Dirs (0.01s)
        --- PASS: Test☺☹Dirs/testingpkg (0.06s)
        --- PASS: Test☺☹Dirs/divergent (0.05s)
        --- PASS: Test☺☹Dirs/buildtag (0.06s)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 01 16:13:47 UTC 2020
    - 3.3K bytes
    - Viewed (0)
  10. 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)
Back to top