Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ClobberDeadReg (0.43 sec)

  1. test/codegen/clobberdeadreg.go

    // asmcheck -gcflags=-clobberdeadreg
    
    //go:build amd64
    
    // Copyright 2021 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.
    
    package codegen
    
    type S struct {
    	a, b, c, d, e, f int
    }
    
    func F(a, b, c int, d S) {
    	// -2401018187971961171 is 0xdeaddeaddeaddead
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/test/clobberdead_test.go

    func TestClobberDead(t *testing.T) {
    	// Test that clobberdead mode generates correct program.
    	runHello(t, "-clobberdead")
    }
    
    func TestClobberDeadReg(t *testing.T) {
    	// Test that clobberdeadreg mode generates correct program.
    	runHello(t, "-clobberdeadreg")
    }
    
    func runHello(t *testing.T, flag string) {
    	if testing.Short() {
    		// This test rebuilds the runtime with a special flag, which
    		// takes a while.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:19:15 UTC 2022
    - 1.2K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/regalloc.go

    						canLiveOnStack.add(arg.ID)
    					}
    				}
    			}
    		}
    	}
    
    	// The clobberdeadreg experiment inserts code to clobber dead registers
    	// at call sites.
    	// Ignore huge functions to avoid doing too much work.
    	if base.Flag.ClobberDeadReg && len(s.f.Blocks) <= 10000 {
    		// TODO: honor GOCLOBBERDEADHASH, or maybe GOSSAHASH.
    		s.doClobber = true
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 17:49:56 UTC 2023
    - 87.2K bytes
    - Viewed (0)
Back to top