Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 14 of 14 for isSamePtr (0.33 sec)

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

    	// cond: sym == sym2 && off == off2 && isSamePtr(ptr, ptr2)
    	// result: (MOVBUreg x)
    	for {
    		off := auxIntToInt32(v.AuxInt)
    		sym := auxToSym(v.Aux)
    		ptr := v_0
    		if v_1.Op != OpARMMOVBstore {
    			break
    		}
    		off2 := auxIntToInt32(v_1.AuxInt)
    		sym2 := auxToSym(v_1.Aux)
    		x := v_1.Args[1]
    		ptr2 := v_1.Args[0]
    		if !(sym == sym2 && off == off2 && isSamePtr(ptr, ptr2)) {
    			break
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 17:19:36 UTC 2023
    - 486.8K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/rewrite.go

    		f.Warnl(v.Pos, "de-virtualizing call")
    	}
    	return v
    }
    
    // isSamePtr reports whether p1 and p2 point to the same address.
    func isSamePtr(p1, p2 *Value) bool {
    	if p1 == p2 {
    		return true
    	}
    	if p1.Op != p2.Op {
    		return false
    	}
    	switch p1.Op {
    	case OpOffPtr:
    		return p1.AuxInt == p2.AuxInt && isSamePtr(p1.Args[0], p2.Args[0])
    	case OpAddr, OpLocalAddr:
    		return p1.Aux == p2.Aux
    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/rewriteAMD64.go

    	// cond: sym == sym2 && off == off2 && isSamePtr(ptr, ptr2)
    	// result: (MOVBQSX x)
    	for {
    		off := auxIntToInt32(v.AuxInt)
    		sym := auxToSym(v.Aux)
    		ptr := v_0
    		if v_1.Op != OpAMD64MOVBstore {
    			break
    		}
    		off2 := auxIntToInt32(v_1.AuxInt)
    		sym2 := auxToSym(v_1.Aux)
    		x := v_1.Args[1]
    		ptr2 := v_1.Args[0]
    		if !(sym == sym2 && off == off2 && isSamePtr(ptr, ptr2)) {
    			break
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 12 19:38:41 UTC 2024
    - 712.7K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/rewrite386.go

    	// cond: sym == sym2 && off == off2 && isSamePtr(ptr, ptr2)
    	// result: (MOVBLSX x)
    	for {
    		off := auxIntToInt32(v.AuxInt)
    		sym := auxToSym(v.Aux)
    		ptr := v_0
    		if v_1.Op != Op386MOVBstore {
    			break
    		}
    		off2 := auxIntToInt32(v_1.AuxInt)
    		sym2 := auxToSym(v_1.Aux)
    		x := v_1.Args[1]
    		ptr2 := v_1.Args[0]
    		if !(sym == sym2 && off == off2 && isSamePtr(ptr, ptr2)) {
    			break
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 21 21:05:46 UTC 2023
    - 262.4K bytes
    - Viewed (0)
Back to top