Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for genLinear (0.3 sec)

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

    			l1 := lca1.find(b, c)
    			l2 := lca2.find(b, c)
    			if l1 != l2 {
    				t.Errorf("lca(%s,%s)=%s, want %s", b, c, l1, l2)
    			}
    		}
    	}
    }
    
    func TestLCALinear(t *testing.T) {
    	testLCAgen(t, genLinear, 10)
    	testLCAgen(t, genLinear, 100)
    }
    
    func TestLCAFwdBack(t *testing.T) {
    	testLCAgen(t, genFwdBack, 10)
    	testLCAgen(t, genFwdBack, 100)
    }
    
    func TestLCAManyPred(t *testing.T) {
    	testLCAgen(t, genManyPred, 10)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Sep 01 14:25:12 UTC 2019
    - 1.7K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/dom_test.go

    func BenchmarkDominatorsMaxPredVal(b *testing.B) { benchmarkDominators(b, 10000, genMaxPredValue) }
    
    type blockGen func(size int) []bloc
    
    // genLinear creates an array of blocks that succeed one another
    // b_n -> [b_n+1].
    func genLinear(size int) []bloc {
    	var blocs []bloc
    	blocs = append(blocs,
    		Bloc("entry",
    			Valu("mem", OpInitMem, types.TypeMem, 0, nil),
    			Goto(blockn(0)),
    		),
    	)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 13.3K bytes
    - Viewed (0)
Back to top