Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 203 for DEAD (0.05 sec)

  1. 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)
  2. 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)
  3. tensorflow/compiler/jit/build_xla_ops_pass.cc

        // the NodeDef inputs to the function call nodes.
        g->AddEdge(new_node, edge->src_output(), edge->dst(), edge->dst_input());
        g->RemoveEdge(edge);
      }
    }
    
    // Returns a data value that is dead iff `control` is dead.
    Output ControlToData(const Scope& scope, Node* control) {
      // The choice of data type here is important.
      //
      // We implement a "control merge", which is a control edge that is alive if
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 24.3K bytes
    - Viewed (0)
  4. test/fixedbugs/issue19764.dir/b.go

    // license that can be found in the LICENSE file.
    
    package main
    
    import "./a"
    
    func main() {
    	var x a.I = &a.T{}
    	x.M() // call to the wrapper (*T).M
    	a.F() // make sure a.F is not dead, which also calls (*T).M inside package a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 02 03:25:02 UTC 2017
    - 339 bytes
    - Viewed (0)
  5. test/deferprint.go

    	defer println(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20)
    	// Disabled so the test doesn't crash but left here for reference.
    	// defer panic("dead")
    	defer print("printing: ")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 31 17:36:45 UTC 2018
    - 586 bytes
    - Viewed (0)
  6. test/fixedbugs/issue17918.go

    // Copyright 2016 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 17918: slice out-of-bounds in ssa/cse
    
    package dead
    
    import (
    	"fmt"
    	"time"
    )
    
    var (
    	units = []struct {
    		divisor time.Duration
    		unit    rune
    	}{
    		{1000000, 's'},
    		{60, 'm'},
    		{60, 'h'},
    		{24, 'd'},
    		{7, 'w'},
    	}
    )
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 18 16:31:27 UTC 2016
    - 619 bytes
    - Viewed (0)
  7. test/fixedbugs/issue29215.go

            s = "a"
            for p {
                    p = false == (true != q)
                    s = ""
            }
            _ = s == "bbb"
    }
    
    // Another case: load from negative offset of a symbol
    // in dead code (issue 30257).
    func g() {
    	var i int
    	var s string
    
    	if true {
    		s = "a"
    	}
    
    	if f := 0.0; -f < 0 {
    		i = len(s[:4])
    	}
    
    	_ = s[i-1:0] != "bb" && true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 16 02:02:31 UTC 2019
    - 596 bytes
    - Viewed (0)
  8. test/fixedbugs/issue48916.go

    // compile
    
    // Copyright 2021 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 48916: expand_calls pass crashes due to a (dead)
    // use of an OpInvalid value.
    
    package p
    
    type T struct {
    	num int64
    }
    
    func foo(vs map[T]struct{}, d T) error {
    	_, ok := vs[d]
    	if !ok {
    		return nil
    	}
    
    	switch d.num {
    	case 0:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 12 18:00:16 UTC 2021
    - 535 bytes
    - Viewed (0)
  9. test/fixedbugs/issue26163.go

    // compile -N -d=softfloat
    
    // 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.
    
    // Issue 26163: dead store generated in late opt messes
    // up store chain calculation.
    
    package p
    
    var i int
    var A = ([]*int{})[i]
    
    var F func(float64, complex128) int
    var C chan complex128
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 03 16:14:24 UTC 2021
    - 400 bytes
    - Viewed (0)
  10. src/internal/coverage/calloc/batchcounteralloc.go

    package calloc
    
    // This package contains a simple "batch" allocator for allocating
    // coverage counters (slices of uint32 basically), for working with
    // coverage data files. Collections of counter arrays tend to all be
    // live/dead over the same time period, so a good fit for batch
    // allocation.
    
    type BatchCounterAlloc struct {
    	pool []uint32
    }
    
    func (ca *BatchCounterAlloc) AllocateCounters(n int) []uint32 {
    	const chunk = 8192
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 28 11:47:16 UTC 2022
    - 754 bytes
    - Viewed (0)
Back to top