- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 69 for Deadcode (0.46 sec)
-
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) -
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) -
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) -
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) -
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) -
src/cmd/compile/internal/ssa/fuse.go
// the following optimization will do this. b.removeEdge(0) if s0 != b && len(s0.Preds) == 0 { s0.removeEdge(0) // Move any (dead) values in s0 to b, // where they will be eliminated by the next deadcode pass. for _, v := range s0.Values { v.Block = b } b.Values = append(b.Values, s0.Values...) // Clear s0. s0.Kind = BlockInvalid s0.Values = nil s0.Succs = nil s0.Preds = nil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 31 20:45:54 UTC 2023 - 9K bytes - Viewed (0) -
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) -
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) -
src/cmd/compile/internal/ssa/cse.go
package ssa import ( "cmd/compile/internal/types" "cmd/internal/src" "fmt" "sort" ) // cse does common-subexpression elimination on the Function. // Values are just relinked, nothing is deleted. A subsequent deadcode // pass is required to actually remove duplicate expressions. func cse(f *Func) { // Two values are equivalent if they satisfy the following definition: // equivalent(v, w): // v.op == w.op // v.type == w.type
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 31 21:41:20 UTC 2022 - 9.6K bytes - Viewed (0) -
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)