Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for phi2 (0.31 sec)

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

    		}
    	}
    }
    
    // phielim eliminates redundant phi values from f.
    // A phi is redundant if its arguments are all equal. For
    // purposes of counting, ignore the phi itself. Both of
    // these phis are redundant:
    //
    //	v = phi(x,x,x)
    //	v = phi(x,v,x,v)
    //
    // We repeat this process to also catch situations like:
    //
    //	v = phi(x, phi(x, x), phi(x, v))
    //
    // TODO: Can we also simplify cases like:
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 14:55:18 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/deadcode.go

    	// Adjust c.Preds
    	c.removePred(j)
    
    	// Remove phi args from c's phis.
    	for _, v := range c.Values {
    		if v.Op != OpPhi {
    			continue
    		}
    		c.removePhiArg(v, j)
    		// Note: this is trickier than it looks. Replacing
    		// a Phi with a Copy can in general cause problems because
    		// Phi and Copy don't have exactly the same semantics.
    		// Phi arguments always come from a predecessor block,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 00:29:01 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/cmd/reset_test.go

    var testResetConfig = fmt.Sprintf(`apiVersion: %s
    kind: ResetConfiguration
    force: true
    dryRun: true
    cleanupTmpDir: true
    criSocket: %s:///var/run/fake.sock
    certificatesDir: /etc/kubernetes/pki2
    ignorePreflightErrors:
    - a
    - b
    `, kubeadmapiv1.SchemeGroupVersion.String(), defaultURLScheme)
    
    func TestNewResetData(t *testing.T) {
    	// create temp directory
    	tmpDir, err := os.MkdirTemp("", "kubeadm-reset-test")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 13:42:50 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/deadstore_test.go

    			Valu("addr", OpAddr, ptrType, 0, nil, "sb"),
    			Goto("loop")),
    		Bloc("loop",
    			Valu("phi", OpPhi, types.TypeMem, 0, nil, "start", "store"),
    			Valu("store", OpStore, types.TypeMem, 0, c.config.Types.Bool, "addr", "v", "phi"),
    			If("v", "loop", "exit")),
    		Bloc("exit",
    			Exit("store")))
    
    	CheckFunc(fun.f)
    	dse(fun.f)
    	CheckFunc(fun.f)
    }
    
    func TestDeadStoreTypes(t *testing.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)
  5. src/cmd/go/testdata/script/work_sum_mismatch.txt

    -- a/main.go --
    package main
    
    import (
    	"fmt"
    	"rsc.io/quote"
    )
    
    func main() {
    	fmt.Println(quote.Hello())
    }
    -- b/go.mod --
    go 1.18
    
    module example.com/hi2
    
    require "rsc.io/quote" v1.5.2
    -- b/go.sum --
    rsc.io/sampler v1.3.0 h1:HLGR/BgEtI3r0uymSP/nl2uPLsUnNJX8toRyhfpBTII=
    rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA=
    -- b/main.go --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 19 14:42:39 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/fuse_test.go

    			Valu("bool1", OpNeqPtr, c.config.Types.Bool, 0, nil, "ptr1", "nilptr"),
    			If("bool1", "then", "else")),
    		Bloc("then",
    			Goto("exit")),
    		Bloc("else",
    			Goto("exit")),
    		Bloc("exit",
    			Valu("phi", OpPhi, ptrType, 0, nil, "ptr1", "ptr1"),
    			Exit("mem")))
    
    	CheckFunc(fun.f)
    	fuseLate(fun.f)
    
    	for _, b := range fun.f.Blocks {
    		if b == fun.blocks["then"] && b.Kind != BlockInvalid {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 20:45:54 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  7. test/fuse.go

    	return a != nil && f > Cf2 || a != nil && f < -Cf2 // ERROR "Redirect IsNonNil based on IsNonNil$"
    }
    
    func fPhi(a, b string) string {
    	aslash := strings.HasSuffix(a, "/") // ERROR "Redirect Phi based on Phi$"
    	bslash := strings.HasPrefix(b, "/")
    	switch {
    	case aslash && bslash:
    		return a + b[1:]
    	case !aslash && !bslash:
    		return a + "/" + b
    	}
    	return a + b
    }
    
    func main() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 23 00:02:36 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/test/testdata/ctl_test.go

    // license that can be found in the LICENSE file.
    
    // Test control flow
    
    package main
    
    import "testing"
    
    // nor_ssa calculates NOR(a, b).
    // It is implemented in a way that generates
    // phi control values.
    func nor_ssa(a, b bool) bool {
    	var c bool
    	if a {
    		c = true
    	}
    	if b {
    		c = true
    	}
    	if c {
    		return false
    	}
    	return true
    }
    
    func testPhiControl(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/_gen/dec.rules

    // This file contains rules to decompose builtin compound types
    // (complex,string,slice,interface) into their constituent
    // types.  These rules work together with the decomposeBuiltIn
    // pass which handles phis of these types.
    
    (Store {t} _ _ mem) && t.Size() == 0 => mem
    
    // complex ops
    (ComplexReal (ComplexMake real _  )) => real
    (ComplexImag (ComplexMake _ imag )) => imag
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 00:48:31 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  10. src/crypto/tls/testdata/Client-TLSv13-AES256-SHA384

    00000220  8d 65 5e 6d ea 9e c3 95  f4 1b 15 bb 91 ac 9c 0b  |.e^m............|
    00000230  13 f0 fa ab 46 ed f1 c5  29 6e 45 db 4c cc 1e 45  |....F...)nE.L..E|
    00000240  4d fc f2 6c 2b 0a d0 f3  70 69 32 cd 2f 23 6d f2  |M..l+...pi2./#m.|
    00000250  5f f3 f4 f0 5c 1c d7 d3  a7 0c 8f 23 29 30 7a 8e  |_...\......#)0z.|
    00000260  c3 aa a8 71 21 5c ad b6  fb c6 bd 78 ac ab b1 a0  |...q!\.....x....|
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:33:38 UTC 2024
    - 7K bytes
    - Viewed (0)
Back to top