Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of about 10,000 for phis (0.15 sec)

  1. pkg/test/loadbalancersim/timeseries/data.go

    	return s[len(s)-1]
    }
    
    func (s sorted) quantile(phi float64) float64 {
    	if len(s) == 0 || math.IsNaN(phi) {
    		return nan
    	}
    	if phi <= 0 {
    		return s.min()
    	}
    	if phi >= 1 {
    		return s.max()
    	}
    	idx := uint(phi*float64(len(s)-1) + 0.5)
    	if idx >= uint(len(s)) {
    		idx = uint(len(s) - 1)
    	}
    	return s[idx]
    }
    
    func (s sorted) quantiles(phis ...float64) []float64 {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 03 18:19:25 UTC 2022
    - 2.1K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/test/testdata/phi_test.go

    		v = int32(data2[21])
    		w = int32(data2[22])
    		x = int32(data2[23])
    		y = int32(data2[24])
    		z = int32(data2[25])
    	}
    	// Lots of phis of the form phi(int32,int64) of type int32 happen here.
    	// Some will be stack phis. For those stack phis, make sure the spill
    	// of the second argument uses the phi's width (4 bytes), not its width
    	// (8 bytes).  Otherwise, a random stack slot gets clobbered.
    
    	runtime.Gosched()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 23 06:40:04 UTC 2020
    - 2.2K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/stackalloc.go

    			phis = phis[:0]
    			for i := len(b.Values) - 1; i >= 0; i-- {
    				v := b.Values[i]
    				live.remove(v.ID)
    				if v.Op == OpPhi {
    					// Save phi for later.
    					// Note: its args might need a stack slot even though
    					// the phi itself doesn't. So don't use needSlot.
    					if !v.Type.IsMemory() && !v.Type.IsVoid() {
    						phis = append(phis, v)
    					}
    					continue
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 21:29:41 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/regalloc.go

    //
    // Phi values are special, as always. We define two kinds of phis, those
    // where the merge happens in a register (a "register" phi) and those where
    // the merge happens in a stack location (a "stack" phi).
    //
    // A register phi must have the phi and all of its inputs allocated to the
    // same register. Register phis are spilled similarly to regular ops.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 17:49:56 UTC 2023
    - 87.2K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/loopreschedchecks.go

    	}
    }
    
    // newPhiFor inserts a new Phi function into b,
    // with all inputs set to v.
    func newPhiFor(b *Block, v *Value) *Value {
    	phiV := b.NewValue0(b.Pos, OpPhi, v.Type)
    
    	for range b.Preds {
    		phiV.AddArg(v)
    	}
    	return phiV
    }
    
    // rewriteNewPhis updates newphis[h] to record all places where the new phi function inserted
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 21:17:10 UTC 2023
    - 16K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/shortcircuit.go

    			// to phi to refer to the corresponding phi arg instead.
    			// phi used to be evaluated prior to this block,
    			// and now it is evaluated in this block.
    			for _, v := range phi.Block.Values {
    				if v.Op != OpPhi || v == phi {
    					continue
    				}
    				for j, a := range v.Args {
    					if a == phi {
    						v.SetArg(j, phi.Args[j])
    					}
    				}
    			}
    			if phi.Uses != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 03 17:47:02 UTC 2022
    - 12.6K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/decompose.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package ssa
    
    import (
    	"cmd/compile/internal/types"
    	"sort"
    )
    
    // decompose converts phi ops on compound builtin types into phi
    // ops on simple types, then invokes rewrite rules to decompose
    // other ops on those types.
    func decomposeBuiltIn(f *Func) {
    	// Decompose phis
    	for _, b := range f.Blocks {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 23 21:22:15 UTC 2022
    - 13.4K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/branchelim.go

    	case "amd64":
    		const maxcost = 2
    		phi := 0
    		other := 0
    		for _, v := range post.Values {
    			if v.Op == OpPhi {
    				// Each phi results in CondSelect, which lowers into CMOV,
    				// CMOV has latency >1 on most CPUs.
    				phi++
    			}
    			for _, x := range v.Args {
    				if x.Block == no || x.Block == yes {
    					other++
    				}
    			}
    		}
    		cost := phi * 1
    		if phi > 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 30 17:46:51 UTC 2022
    - 12.7K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssagen/phi.go

    func (fwdRefAux) CanBeAnSSAAux() {}
    
    // insertPhis finds all the places in the function where a phi is
    // necessary and inserts them.
    // Uses FwdRef ops to find all uses of variables, and s.defvars to find
    // all definitions.
    // Phi values are inserted, and all FwdRefs are changed to a Copy
    // of the appropriate phi or definition.
    // TODO: make this part of cmd/compile/internal/ssa somehow?
    func (s *state) insertPhis() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 18 17:59:44 UTC 2022
    - 15.2K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/print.go

    			for _, v := range b.Values {
    				p.value(v, live[v.ID])
    				printed[v.ID] = true
    			}
    			p.endBlock(b, reachable[b.ID])
    			continue
    		}
    
    		// print phis first since all value cycles contain a phi
    		n := 0
    		for _, v := range b.Values {
    			if v.Op != OpPhi {
    				continue
    			}
    			p.value(v, live[v.ID])
    			printed[v.ID] = true
    			n++
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 31 21:41:20 UTC 2022
    - 3.9K bytes
    - Viewed (0)
Back to top