Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for isConstZero (0.17 sec)

  1. src/cmd/compile/internal/ssa/_gen/generic.rules

    	=> mem
    
    // Don't Store zeros to cleared variables.
    (Store {t} (OffPtr [o] p1) x mem:(Zero [n] p2 _))
    	&& isConstZero(x)
    	&& o >= 0 && t.Size() + o <= n && isSamePtr(p1, p2)
    	=> mem
    (Store {t1} op:(OffPtr [o1] p1) x mem:(Store {t2} p2 _ (Zero [n] p3 _)))
    	&& isConstZero(x)
    	&& o1 >= 0 && t1.Size() + o1 <= n && isSamePtr(p1, p3)
    	&& disjoint(op, t1.Size(), p2, t2.Size())
    	=> mem
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 22:21:05 UTC 2024
    - 135.3K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/rewrite.go

    func min(x, y int64) int64 {
    	if x < y {
    		return x
    	}
    	return y
    }
    func max(x, y int64) int64 {
    	if x > y {
    		return x
    	}
    	return y
    }
    
    func isConstZero(v *Value) bool {
    	switch v.Op {
    	case OpConstNil:
    		return true
    	case OpConst64, OpConst32, OpConst16, OpConst8, OpConstBool, OpConst32F, OpConst64F:
    		return v.AuxInt == 0
    	}
    	return false
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 64.2K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/rewritegeneric.go

    			break
    		}
    		n := auxIntToInt64(mem.AuxInt)
    		p2 := mem.Args[0]
    		if !(isConstZero(x) && o >= 0 && t.Size()+o <= n && isSamePtr(p1, p2)) {
    			break
    		}
    		v.copyOf(mem)
    		return true
    	}
    	// match: (Store {t1} op:(OffPtr [o1] p1) x mem:(Store {t2} p2 _ (Zero [n] p3 _)))
    	// cond: isConstZero(x) && o1 >= 0 && t1.Size() + o1 <= n && isSamePtr(p1, p3) && disjoint(op, t1.Size(), p2, t2.Size())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 18:24:47 UTC 2024
    - 812.2K bytes
    - Viewed (0)
Back to top