Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for copyelim (0.15 sec)

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

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package ssa
    
    // combine copyelim and phielim into a single pass.
    // copyelim removes all uses of OpCopy values from f.
    // A subsequent deadcode pass is needed to actually remove the copies.
    func copyelim(f *Func) {
    	phielim(f)
    
    	// loop of copyelimValue(v) process has been done in phielim() pass.
    	// Update block control values.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 14:55:18 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/export_test.go

    	"cmd/internal/obj/arm64"
    	"cmd/internal/obj/s390x"
    	"cmd/internal/obj/x86"
    	"cmd/internal/src"
    	"cmd/internal/sys"
    )
    
    var CheckFunc = checkFunc
    var Opt = opt
    var Deadcode = deadcode
    var Copyelim = copyelim
    
    var testCtxts = map[string]*obj.Link{
    	"amd64": obj.Linknew(&x86.Linkamd64),
    	"s390x": obj.Linknew(&s390x.Links390x),
    	"arm64": obj.Linknew(&arm64.Linkarm64),
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 21:19:39 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/copyelim_test.go

    	for i := 0; i < len(values)/2; i++ {
    		values[i], values[len(values)-1-i] = values[len(values)-1-i], values[i]
    	}
    
    	for i := 0; i < b.N; i++ {
    		fun := c.Fun("entry", Bloc("entry", values...))
    		Copyelim(fun.f)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 09 23:01:51 UTC 2017
    - 1.3K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/compile.go

    }
    
    // list of passes for the compiler
    var passes = [...]pass{
    	{name: "number lines", fn: numberLines, required: true},
    	{name: "early phielim and copyelim", fn: copyelim},
    	{name: "early deadcode", fn: deadcode}, // remove generated dead code to avoid doing pointless work during opt
    	{name: "short circuit", fn: shortcircuit},
    	{name: "decompose user", fn: decomposeUser, 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/deadcode.go

    		}
    		if b.Kind != BlockFirst {
    			continue
    		}
    		b.removeEdge(1)
    		b.Kind = BlockPlain
    		b.Likely = BranchUnknown
    	}
    
    	// Splice out any copies introduced during dead block removal.
    	copyelim(f)
    
    	// Find live values.
    	live, order := liveValues(f, reachable)
    	defer func() { f.Cache.freeBoolSlice(live) }()
    	defer func() { f.Cache.freeValueSlice(order) }()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 00:29:01 UTC 2023
    - 9.2K bytes
    - Viewed (0)
Back to top