Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 69 for Deadcode (0.15 sec)

  1. src/cmd/compile/internal/ssagen/pgen.go

    	for _, ln := range fn.Dcl {
    		if ln.OpenDeferSlot() {
    			// Open-coded defer slots have indices that were assigned
    			// upfront during SSA construction, but the defer statement can
    			// later get removed during deadcode elimination (#61895). To
    			// keep their relative offsets correct, treat them all as used.
    			continue
    		}
    
    		if needAlloc(ln) {
    			ln.SetUsed(false)
    		}
    	}
    
    	for _, l := range f.RegAlloc {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:44:14 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/html.go

    </style>
    
    <script type="text/javascript">
    
    // Contains phase names which are expanded by default. Other columns are collapsed.
    let expandedDefault = [
        "start",
        "deadcode",
        "opt",
        "lower",
        "late-deadcode",
        "regalloc",
        "genssa",
    ];
    if (history.state === null) {
        history.pushState({expandedDefault}, "", location.href);
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 04 15:11:40 UTC 2023
    - 34.8K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/sccp.go

    	}
    }
    
    // rewireSuccessor rewires corresponding successors according to constant value
    // discovered by previous analysis. As the result, some successors become unreachable
    // and thus can be removed in further deadcode phase
    func rewireSuccessor(block *Block, constVal *Value) bool {
    	switch block.Kind {
    	case BlockIf:
    		block.removeEdge(int(constVal.AuxInt))
    		block.Kind = BlockPlain
    		block.Likely = BranchUnknown
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 16:54:50 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  4. src/cmd/internal/test2json/testdata/smiley.json

    {"Action":"pass","Test":"Test☺☹/1"}
    {"Action":"output","Test":"Test☺☹/7","Output":"    --- PASS: Test☺☹/7 (0.19s)\n"}
    {"Action":"output","Test":"Test☺☹/7","Output":"        vet_test.go:114: φιλεσ: [\"testdata/deadcode.go\" \"testdata/shift.go\"]\n"}
    {"Action":"pass","Test":"Test☺☹/7"}
    {"Action":"pass","Test":"Test☺☹"}
    {"Action":"output","Test":"Test☺☹Dirs","Output":"--- PASS: Test☺☹Dirs (0.01s)\n"}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 09 17:33:07 UTC 2022
    - 12.4K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/rewrite.go

    )
    
    type deadValueChoice bool
    
    const (
    	leaveDeadValues  deadValueChoice = false
    	removeDeadValues                 = true
    )
    
    // deadcode indicates whether rewrite should try to remove any values that become dead.
    func applyRewrite(f *Func, rb blockRewriter, rv valueRewriter, deadcode deadValueChoice) {
    	// repeat rewrites until we find no more rewrites
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 64.2K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ir/func.go

    	// true if closure inside a function; false if a simple function or a
    	// closure in a global variable initialization
    	funcIsHiddenClosure
    	funcIsDeadcodeClosure        // true if closure is deadcode
    	funcHasDefer                 // contains a defer statement
    	funcNilCheckDisabled         // disable nil checks when compiling this function
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/inline/inlheur/scoring.go

    // appears on panic path)
    //
    // 2) adjustments that take into account specific interesting values
    // passed at a call site (ex: passing a constant that could result in
    // cprop/deadcode in the caller)
    //
    // 3) adjustments that take into account values returned from the call
    // at a callsite (ex: call always returns the same inlinable function,
    // and return value flows unmodified into an indirect call)
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 20:42:52 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  8. src/cmd/link/internal/ld/symtab.go

    		// important that the offsets we computed stay unchanged by the external
    		// linker, i.e. all symbols in Textp should not be removed.
    		// Most of them are actually referenced (our deadcode pass ensures that),
    		// except go:buildid which is generated late and not used by the program.
    		addRef("go:buildid")
    	}
    
    	// text section information
    	slice(textsectionmapSym, uint64(nsections))
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 13 16:29:40 UTC 2023
    - 29.2K bytes
    - Viewed (0)
  9. src/cmd/link/internal/ld/pcln.go

    			for j := goobj.CUFileIndex(0); j < max; j++ {
    				fileOffset, ok := fileOffsets[cu.FileTable[j]]
    				if !ok {
    					// We're looping through all possible file indices. It's possible a file's
    					// been deadcode eliminated, and although it's a valid file in the CU, it's
    					// not needed in this binary. When that happens, use an invalid offset.
    					fileOffset = ^uint32(0)
    				}
    				off = sb.SetUint32(ctxt.Arch, off, fileOffset)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 29.6K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/_gen/RISCV64.rules

    (SLTIU [x] (ORI  [y] _)) && y >= 0 && uint64(y) >= uint64(x) => (MOVDconst [0])
    
    // SLT/SLTU with known outcomes.
    (SLT  x x) => (MOVDconst [0])
    (SLTU x x) => (MOVDconst [0])
    
    // Deadcode for LoweredMuluhilo
    (Select0 m:(LoweredMuluhilo x y)) && m.Uses == 1 => (MULHU x y)
    (Select1 m:(LoweredMuluhilo x y)) && m.Uses == 1 => (MUL x y)
    
    (FADD(S|D) a (FMUL(S|D) x y)) && a.Block.Func.useFMA(v) => (FMADD(S|D) x y a)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 14:57:07 UTC 2024
    - 40.3K bytes
    - Viewed (0)
Back to top