Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 41 for CSE (0.03 sec)

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

    package ssa
    
    import (
    	"cmd/compile/internal/types"
    	"cmd/internal/src"
    	"fmt"
    	"sort"
    )
    
    // cse does common-subexpression elimination on the Function.
    // Values are just relinked, nothing is deleted. A subsequent deadcode
    // pass is required to actually remove duplicate expressions.
    func cse(f *Func) {
    	// Two values are equivalent if they satisfy the following definition:
    	// equivalent(v, w):
    	//   v.op == w.op
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 31 21:41:20 UTC 2022
    - 9.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/tests/tf_executor_ops_side_effect.mlir

    // RUN: tf-opt %s -cse  | FileCheck %s
    // Checks that CSE runs without generating invalid IR and doesn't CSE ops like
    // NextIteration.Source and NextIteration.Sink.
    // CHECK-LABEL: func @main
    // CHECK: tf_executor.NextIteration.Source
    // CHECK: tf_executor.NextIteration.Source
    // CHECK: tf_executor.NextIteration.Sink
    // CHECK: tf_executor.NextIteration.Sink
    func.func @main() -> (tensor<1xi32>, tensor<1xi32>) {
      %0, %1 = tf_executor.graph {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 24 05:47:26 UTC 2022
    - 989 bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/cse_test.go

    				if s1Cnt == 0 {
    					t.Errorf("cse removed all of r1,r2,r3")
    				}
    				s1Cnt--
    
    			case "r4":
    				fallthrough
    			case "r5":
    				if s2Cnt == 0 {
    					t.Errorf("cse removed all of r4,r5")
    				}
    				s2Cnt--
    			default:
    				t.Errorf("cse removed %s, but shouldn't have", k)
    			}
    		}
    	}
    
    	if s1Cnt != 0 || s2Cnt != 0 {
    		t.Errorf("%d values missed during cse", s1Cnt+s2Cnt)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:09:14 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/compile.go

    	{name: "addressing modes", fn: addressingModes, required: false},
    	{name: "late lower", fn: lateLower, required: true},
    	{name: "lowered deadcode for cse", fn: deadcode}, // deadcode immediately before CSE avoids CSE making dead values live again
    	{name: "lowered cse", fn: cse},
    	{name: "elim unread autos", fn: elimUnreadAutos},
    	{name: "tighten tuple selectors", fn: tightenTupleSelectors, required: true},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 14:55:18 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/deadstore_test.go

    	// Make sure a narrow store can't shadow a wider one. We test an even
    	// stronger restriction, that one store can't shadow another unless the
    	// types of the address fields are identical (where identicalness is
    	// decided by the CSE pass).
    	c := testConfig(t)
    	t1 := c.config.Types.UInt64.PtrTo()
    	t2 := c.config.Types.UInt32.PtrTo()
    	fun := c.Fun("entry",
    		Bloc("entry",
    			Valu("start", OpInitMem, types.TypeMem, 0, nil),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 25 20:07:26 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/passbm_test.go

    func BenchmarkCSEPass(b *testing.B)           { benchFnPass(b, cse, blockCount, genFunction) }
    func BenchmarkCSEPassBlock(b *testing.B)      { benchFnBlock(b, cse, genFunction) }
    func BenchmarkDeadcodePass(b *testing.B)      { benchFnPass(b, deadcode, blockCount, genFunction) }
    func BenchmarkDeadcodePassBlock(b *testing.B) { benchFnBlock(b, deadcode, genFunction) }
    
    func multi(f *Func) {
    	cse(f)
    	dse(f)
    	deadcode(f)
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  7. MIGRATION.md

    [Fess Site Search](https://github.com/codelibs/fess-site-search) provides [scripts](https://fss-generator.codelibs.org/docs/manual) (see below) to help you migrate from GSS/CSE.
    Using the, you can replace existing GSS/CSE JavaScript codes with:
    
    ```
    <script>
      (function() {
        var fess = document.createElement('script');
        fess.type = 'text/javascript';
        fess.async = true;
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Tue Mar 05 06:12:02 UTC 2019
    - 1.6K bytes
    - Viewed (0)
  8. test/fixedbugs/issue16741.go

    // compile
    
    // Copyright 2016 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Make sure CSE of multi-output opcodes works correctly
    // with select0/1 operations.
    
    package main
    
    func div(d, r int64) int64 {
    	if m := d % r; m > 0 {
    		return d/r + 1
    	}
    	return d / r
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 17 21:03:26 UTC 2016
    - 363 bytes
    - Viewed (0)
  9. test/fixedbugs/issue20097.go

    // compile
    
    // Copyright 2017 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Issue 20097: ensure that we CSE multiple Select ops with
    // the same underlying type
    
    package main
    
    type T int64
    
    func f(x, y int64) (int64, T) {
    	a := x / y
    	b := T(x) / T(y)
    	return a, b
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 09 23:22:00 UTC 2017
    - 366 bytes
    - Viewed (0)
  10. test/fixedbugs/issue17918.go

    // compile
    
    // Copyright 2016 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Issue 17918: slice out-of-bounds in ssa/cse
    
    package dead
    
    import (
    	"fmt"
    	"time"
    )
    
    var (
    	units = []struct {
    		divisor time.Duration
    		unit    rune
    	}{
    		{1000000, 's'},
    		{60, 'm'},
    		{60, 'h'},
    		{24, 'd'},
    		{7, 'w'},
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 18 16:31:27 UTC 2016
    - 619 bytes
    - Viewed (0)
Back to top