Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 965 for blockAsm (0.1 sec)

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

    package ssa
    
    import "cmd/compile/internal/base"
    
    // tighten moves Values closer to the Blocks in which they are used.
    // This can reduce the amount of register spilling required,
    // if it doesn't also create more live values.
    // A Value can be moved to any block that
    // dominates all blocks in which it is used.
    func tighten(f *Func) {
    	if base.Flag.N != 0 && len(f.Blocks) < 10000 {
    		// Skip the optimization in -N mode, except for huge functions.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 16 01:01:38 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/cache.go

    	nv := sort.Search(len(c.values), func(i int) bool { return c.values[i].ID == 0 })
    	xv := c.values[:nv]
    	for i := range xv {
    		xv[i] = Value{}
    	}
    	nb := sort.Search(len(c.blocks), func(i int) bool { return c.blocks[i].ID == 0 })
    	xb := c.blocks[:nb]
    	for i := range xb {
    		xb[i] = Block{}
    	}
    	nl := sort.Search(len(c.locs), func(i int) bool { return c.locs[i] == nil })
    	xl := c.locs[:nl]
    	for i := range xl {
    		xl[i] = nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 15 23:00:54 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  3. pkg/kube/inject/openshift.go

    // parseSupplementalGroupAnnotation parses the group annotation into blocks.
    func parseSupplementalGroupAnnotation(groups string) ([]Block, error) {
    	blocks := []Block{}
    	segments := strings.Split(groups, ",")
    	for _, segment := range segments {
    		block, err := ParseBlock(segment)
    		if err != nil {
    			return nil, err
    		}
    		blocks = append(blocks, block)
    	}
    	if len(blocks) == 0 {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Aug 25 19:10:42 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/branchelim_test.go

    				}
    				if fun.blocks["entry"].Kind != BlockExit {
    					t.Errorf("expected entry to be BlockExit; found kind %s", fun.blocks["entry"].Kind.String())
    				}
    			} else {
    				if len(fun.f.Blocks) != 3 {
    					t.Fatalf("expected 3 block after branchelim and deadcode; found %d", len(fun.f.Blocks))
    				}
    			}
    		})
    	}
    }
    
    // Test that a trivial if/else is eliminated
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 24 15:51:15 UTC 2018
    - 5.2K bytes
    - Viewed (0)
  5. src/internal/trace/parser.go

    	EvGoBlock           = 20 // goroutine blocks [timestamp, stack]
    	EvGoUnblock         = 21 // goroutine is unblocked [timestamp, goroutine id, seq, stack]
    	EvGoBlockSend       = 22 // goroutine blocks on chan send [timestamp, stack]
    	EvGoBlockRecv       = 23 // goroutine blocks on chan recv [timestamp, stack]
    	EvGoBlockSelect     = 24 // goroutine blocks on select [timestamp, stack]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:31:04 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  6. src/testing/cover.go

    	for name, counts := range cover.Counters {
    		blocks := cover.Blocks[name]
    		for i := range counts {
    			stmts := int64(blocks[i].Stmts)
    			total += stmts
    			count = atomic.LoadUint32(&counts[i]) // For -mode=atomic.
    			if count > 0 {
    				active += stmts
    			}
    			if f != nil {
    				_, err := fmt.Fprintf(f, "%s:%d.%d,%d.%d %d %d\n", name,
    					blocks[i].Line0, blocks[i].Col0,
    					blocks[i].Line1, blocks[i].Col1,
    					stmts,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 11:37:31 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/trim.go

    // license that can be found in the LICENSE file.
    
    package ssa
    
    import "cmd/internal/src"
    
    // trim removes blocks with no code in them.
    // These blocks were inserted to remove critical edges.
    func trim(f *Func) {
    	n := 0
    	for _, b := range f.Blocks {
    		if !trimmableBlock(b) {
    			f.Blocks[n] = b
    			n++
    			continue
    		}
    
    		bPos := b.Pos
    		bIsStmt := bPos.IsStmt() == src.PosIsStmt
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 18 17:59:44 UTC 2022
    - 4.2K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/regalloc_test.go

    	regalloc(f.f)
    	checkFunc(f.f)
    	// Spill should be moved to exit2.
    	if numSpills(f.blocks["loop1"]) != 0 {
    		t.Errorf("spill present from loop1")
    	}
    	if numSpills(f.blocks["loop2"]) != 0 {
    		t.Errorf("spill present in loop2")
    	}
    	if numSpills(f.blocks["exit1"]) != 0 {
    		t.Errorf("spill present in exit1")
    	}
    	if numSpills(f.blocks["exit2"]) != 1 {
    		t.Errorf("spill missing in exit2")
    	}
    
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:09:14 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  9. src/go/doc/comment/testdata/code.txt

         start
          a
           block.
    More text.
    
          Blocks
        can
    
      have
        blank
          lines.
    -- gofmt --
    Text.
    
    	A tab-indented
    	(no, not eight-space indented)
    	code block and haiku.
    
    More text.
    
    	One space
    	 is
    	  enough
    	   to
    	    start
    	     a
    	      block.
    
    More text.
    
    	    Blocks
    	  can
    
    	have
    	  blank
    	    lines.
    -- markdown --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:31:47 UTC 2022
    - 944 bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/nilcheck_test.go

    	fuse(fun.f, fuseTypePlain)
    	deadcode(fun.f)
    
    	CheckFunc(fun.f)
    	foundDifferentCheck := false
    	for _, b := range fun.f.Blocks {
    		if b == fun.blocks["secondCheck"] && isNilCheck(b) {
    			t.Errorf("secondCheck was not eliminated")
    		}
    		if b == fun.blocks["differentCheck"] && isNilCheck(b) {
    			foundDifferentCheck = true
    		}
    	}
    	if !foundDifferentCheck {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 23:34:11 UTC 2023
    - 12.3K bytes
    - Viewed (0)
Back to top