Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for secondselect (0.18 sec)

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

    	if !shouldElimIfElse(no, yes, post, f.Config.arch) {
    		return false
    	}
    
    	// now we're committed: rewrite each Phi as a CondSelect
    	swap := post.Preds[0].Block() != b.Succs[0].Block()
    	for _, v := range post.Values {
    		if v.Op != OpPhi {
    			continue
    		}
    		v.Op = OpCondSelect
    		if swap {
    			v.Args[0], v.Args[1] = v.Args[1], v.Args[0]
    		}
    		v.AddArg(b.Controls[0])
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 30 17:46:51 UTC 2022
    - 12.7K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/check.go

    						v.Op, v.Type.String())
    				}
    				if !v.Args[2].Type.IsMemory() {
    					f.Fatalf("bad arg 2 type to %s: want mem, have %s",
    						v.Op, v.Args[2].Type.String())
    				}
    			case OpCondSelect:
    				if !v.Args[2].Type.IsBoolean() {
    					f.Fatalf("bad arg 2 type to %s: want boolean, have %s",
    						v.Op, v.Args[2].Type.String())
    				}
    			case OpAddPtr:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 16:41:23 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/_gen/Wasm.rules

    (PopCount64 ...) => (I64Popcnt ...)
    (PopCount32 x) => (I64Popcnt (ZeroExt32to64 x))
    (PopCount16 x) => (I64Popcnt (ZeroExt16to64 x))
    (PopCount8  x) => (I64Popcnt (ZeroExt8to64  x))
    
    (CondSelect ...) => (Select ...)
    
    // --- Optimizations ---
    (I64Add (I64Const [x]) (I64Const [y])) => (I64Const [x + y])
    (I64Mul (I64Const [x]) (I64Const [y])) => (I64Const [x * y])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 03:56:57 UTC 2023
    - 16.9K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/_gen/genericOps.go

    	{name: "Leq32F", argLength: 2, typ: "Bool"},
    	{name: "Leq64F", argLength: 2, typ: "Bool"},
    
    	// the type of a CondSelect is the same as the type of its first
    	// two arguments, which should be register-width scalars; the third
    	// argument should be a boolean
    	{name: "CondSelect", argLength: 3}, // arg2 ? arg0 : arg1
    
    	// boolean ops
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/_gen/LOONG64.rules

    (PanicBounds [kind] x y mem) && boundsABI(kind) == 1 => (LoweredPanicBoundsB [kind] x y mem)
    (PanicBounds [kind] x y mem) && boundsABI(kind) == 2 => (LoweredPanicBoundsC [kind] x y mem)
    
    (CondSelect <t> x y cond) => (OR (MASKEQZ <t> x cond) (MASKNEZ <t> y cond))
    
    // Optimizations
    
    // Absorb boolean tests into block
    (NE (FPFlagTrue cmp) yes no) => (FPT cmp yes no)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 19:26:25 UTC 2023
    - 31.8K bytes
    - Viewed (0)
Back to top