- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 4,433 for Dead (0.11 sec)
-
src/cmd/compile/internal/ssa/deadstore_test.go
Bloc("exit", Exit("store3"))) CheckFunc(fun.f) dse(fun.f) CheckFunc(fun.f) v1 := fun.values["store1"] if v1.Op != OpCopy { t.Errorf("dead store not removed") } v2 := fun.values["zero1"] if v2.Op != OpCopy { t.Errorf("dead store (zero) not removed") } } func TestDeadStorePhi(t *testing.T) { // make sure we don't get into an infinite loop with phi values. c := testConfig(t)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 25 20:07:26 UTC 2024 - 5.6K bytes - Viewed (0) -
src/cmd/vet/testdata/deadcode/deadcode.go
// Copyright 2013 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // This file contains tests for the dead code checker. package deadcode func _() int { print(1) return 2 println() // ERROR "unreachable code" return 3
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 20 15:46:42 UTC 2019 - 320 bytes - Viewed (0) -
test/typeparam/graph.go
16: {exits: [10]int{east: 17, north: 13, sw: 18}}, // skeleton, etc. 17: {exits: [10]int{west: 16}}, // Dead End 18: {exits: [10]int{down: 16, east: 19, west: 18, up: 22}}, 19: {exits: [10]int{up: 29, west: 18, ne: 15, east: 20, south: 30}}, 20: {exits: [10]int{ne: 19, west: 20, se: 21}}, 21: {exits: [10]int{north: 20}}, // Dead End
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 5.7K bytes - Viewed (0) -
test/fixedbugs/issue28616.go
// compile // Copyright 2018 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Make sure we don't dead code eliminate a label. package p var i int func f() { if true { if i == 1 { goto label } return } label:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 06 18:50:16 UTC 2018 - 325 bytes - Viewed (0) -
src/runtime/mgcstack.go
throw("address not a stack address") } head := &s.buf if conservative { head = &s.cbuf } buf := *head if buf == nil { // Initial setup. buf = (*stackWorkBuf)(unsafe.Pointer(getempty())) buf.nobj = 0 buf.next = nil *head = buf } else if buf.nobj == len(buf.obj) { if s.freeBuf != nil { buf = s.freeBuf s.freeBuf = nil } else {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 21 21:06:52 UTC 2023 - 10.6K bytes - Viewed (0) -
test/fixedbugs/issue19678.go
// Copyright 2017 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Used to crash when compiling functions containing // forward refs in dead code. package p var f func(int) func g() { l1: i := 0 goto l1 l2: f(i) goto l2
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 24 18:00:15 UTC 2017 - 337 bytes - Viewed (0) -
test/fixedbugs/issue9608.go
// rundir // Copyright 2015 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Issue 9608: dead code elimination in switch statements. // This has to be done as a package rather than as a file, // because run.go runs files with 'go run', which passes the // -complete flag to compiler, causing it to complain about // the intentionally unimplemented function fail.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 06 19:05:47 UTC 2015 - 478 bytes - Viewed (0) -
test/fixedbugs/issue19679.go
// compile // Copyright 2017 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Used to crash when a type switch was present in dead code // in an inlineable function. package p func Then() { var i interface{} if false { switch i.(type) { } } } func Else() { var i interface{} if true { _ = i } else {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 24 17:21:05 UTC 2017 - 536 bytes - Viewed (0) -
src/internal/trace/testdata/generators/go122-create-syscall-reuse-thread-id.go
// in the trace have unique IDs, since the P just stays associated // with an eternally dead thread, and it's stolen by some other // thread later. But if thread IDs are reused, then the tracer // gets confused when trying to advance events on the new thread. // The now-dead thread which exited on a GoDestroySyscall still has // its P associated and this transfers to the newly-live thread
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 21:15:28 UTC 2024 - 2.3K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/deadstore.go
// license that can be found in the LICENSE file. package ssa import ( "cmd/compile/internal/ir" "cmd/compile/internal/types" ) // dse does dead-store elimination on the Function. // Dead stores are those which are unconditionally followed by // another store to the same location, with no intervening load. // This implementation only works within a basic block. TODO: use something more global.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 25 20:07:26 UTC 2024 - 11K bytes - Viewed (0)