Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 38 for succFn (0.1 sec)

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

    		return
    	}
    	ln.calculateDepths()
    	b2l := ln.b2l
    	for _, b := range ln.po {
    		l := b2l[b.ID]
    		if l != nil && len(b.Succs) == 2 {
    			sl := b2l[b.Succs[0].b.ID]
    			if recordIfExit(l, sl, b.Succs[0].b) {
    				continue
    			}
    			sl = b2l[b.Succs[1].b.ID]
    			if recordIfExit(l, sl, b.Succs[1].b) {
    				continue
    			}
    		}
    	}
    	ln.initializedExits = true
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 31 21:41:20 UTC 2022
    - 15.4K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/branchelim.go

    		return false
    	}
    	yes, no := b.Succs[0].Block(), b.Succs[1].Block()
    	if !isLeafPlain(yes) || len(yes.Values) > 1 || !canSpeculativelyExecute(yes) {
    		return false
    	}
    	if !isLeafPlain(no) || len(no.Values) > 1 || !canSpeculativelyExecute(no) {
    		return false
    	}
    	if b.Succs[0].Block().Succs[0].Block() != b.Succs[1].Block().Succs[0].Block() {
    		return false
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 30 17:46:51 UTC 2022
    - 12.7K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/check.go

    			}
    		case BlockRetJmp:
    			if len(b.Succs) != 0 {
    				f.Fatalf("retjmp block %s len(Succs)==%d, want 0", b, len(b.Succs))
    			}
    			if b.NumControls() != 1 {
    				f.Fatalf("retjmp block %s has nil control", b)
    			}
    			if !b.Controls[0].Type.IsMemory() {
    				f.Fatalf("retjmp block %s has non-memory control value %s", b, b.Controls[0].LongString())
    			}
    		case BlockPlain:
    			if len(b.Succs) != 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 16:41:23 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/func_test.go

    				return false
    			}
    			for i := range fb.Values {
    				if !checkVal(fb.Values[i], gb.Values[i]) {
    					return false
    				}
    			}
    			if len(fb.Succs) != len(gb.Succs) {
    				return false
    			}
    			for i := range fb.Succs {
    				if !checkBlk(fb.Succs[i].b, gb.Succs[i].b) {
    					return false
    				}
    			}
    			if len(fb.Preds) != len(gb.Preds) {
    				return false
    			}
    			for i := range fb.Preds {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:01:04 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/shortcircuit.go

    	// In these cases, we can reconstruct what the value
    	// of any phi in b must be in the successor blocks.
    
    	if len(t.Preds) == 1 && len(t.Succs) == 1 &&
    		len(u.Preds) == 1 && len(u.Succs) == 1 &&
    		t.Succs[0].b == u.Succs[0].b && len(t.Succs[0].b.Preds) == 2 {
    		// p   q
    		//  \ /
    		//   b
    		//  / \
    		// t   u
    		//  \ /
    		//   m
    		//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 03 17:47:02 UTC 2022
    - 12.6K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/go/cfg/builder.go

    		Stmt:  stmt,
    	}
    	block.Succs = block.succs2[:0]
    	g.Blocks = append(g.Blocks, block)
    	return block
    }
    
    func (b *builder) add(n ast.Node) {
    	b.current.Nodes = append(b.current.Nodes, n)
    }
    
    // jump adds an edge from the current block to the target block,
    // and sets b.current to nil.
    func (b *builder) jump(target *Block) {
    	b.current.Succs = append(b.current.Succs, target)
    	b.current = nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/block.go

    func (b *Block) removeSucc(i int) {
    	n := len(b.Succs) - 1
    	if i != n {
    		e := b.Succs[n]
    		b.Succs[i] = e
    		// Update the other end of the edge we moved.
    		e.b.Preds[e.i].i = i
    	}
    	b.Succs[n] = Edge{}
    	b.Succs = b.Succs[:n]
    	b.Func.invalidateCFG()
    }
    
    func (b *Block) swapSuccessors() {
    	if len(b.Succs) != 2 {
    		b.Fatalf("swapSuccessors with len(Succs)=%d", len(b.Succs))
    	}
    	e0 := b.Succs[0]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:44:14 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/wasm/ssa.go

    	case ssa.BlockPlain:
    		if next != b.Succs[0].Block() {
    			s.Br(obj.AJMP, b.Succs[0].Block())
    		}
    
    	case ssa.BlockIf:
    		switch next {
    		case b.Succs[0].Block():
    			// if false, jump to b.Succs[1]
    			getValue32(s, b.Controls[0])
    			s.Prog(wasm.AI32Eqz)
    			s.Prog(wasm.AIf)
    			s.Br(obj.AJMP, b.Succs[1].Block())
    			s.Prog(wasm.AEnd)
    		case b.Succs[1].Block():
    			// if true, jump to b.Succs[0]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 00:21:13 UTC 2023
    - 17.6K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/_gen/rulegen.go

    	// Check if newsuccs is the same set as succs.
    	succs := s[data.controls:]
    	newsuccs := t[outdata.controls:]
    	m := map[string]bool{}
    	for _, succ := range succs {
    		if m[succ] {
    			log.Fatalf("can't have a repeat successor name %s in %s", succ, rule)
    		}
    		m[succ] = true
    	}
    	for _, succ := range newsuccs {
    		if !m[succ] {
    			log.Fatalf("unknown successor %s in %s", succ, rule)
    		}
    		delete(m, succ)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 02 22:09:21 UTC 2023
    - 48.7K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/s390x/ssa.go

    	// whether a block has already been emitted. In general forward
    	// branches are assumed 'not taken' and backward branches are
    	// assumed 'taken'.
    	if next == succs[0] {
    		succs[0], succs[1] = succs[1], succs[0]
    		mask = mask.Inverse()
    	}
    
    	p := s.Br(blockAsm(b), succs[0])
    	switch b.Kind {
    	case ssa.BlockS390XBRC:
    		p.From.Type = obj.TYPE_CONST
    		p.From.Offset = int64(mask)
    	case ssa.BlockS390XCGRJ, ssa.BlockS390XCRJ,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 01:26:58 UTC 2023
    - 27.1K bytes
    - Viewed (0)
Back to top