@@ -540,7 +540,7 @@ func (s *state) stmt(n *Node) {
540540 m := s .mem ()
541541 b := s .endBlock ()
542542 b .Kind = ssa .BlockExit
543- b .Control = m
543+ b .SetControl ( m )
544544 // TODO: never rewrite OPANIC to OCALLFUNC in the
545545 // first place. Need to wait until all backends
546546 // go through SSA.
@@ -920,7 +920,7 @@ func (s *state) exit() *ssa.Block {
920920 m := s .mem ()
921921 b := s .endBlock ()
922922 b .Kind = ssa .BlockRet
923- b .Control = m
923+ b .SetControl ( m )
924924 return b
925925}
926926
@@ -1795,7 +1795,7 @@ func (s *state) expr(n *Node) *ssa.Value {
17951795
17961796 b := s .endBlock ()
17971797 b .Kind = ssa .BlockIf
1798- b .Control = el
1798+ b .SetControl ( el )
17991799 // In theory, we should set b.Likely here based on context.
18001800 // However, gc only gives us likeliness hints
18011801 // in a single place, for plain OIF statements,
@@ -2039,7 +2039,7 @@ func (s *state) expr(n *Node) *ssa.Value {
20392039 b := s .endBlock ()
20402040 b .Kind = ssa .BlockIf
20412041 b .Likely = ssa .BranchUnlikely
2042- b .Control = cmp
2042+ b .SetControl ( cmp )
20432043 b .AddEdgeTo (grow )
20442044 b .AddEdgeTo (assign )
20452045
@@ -2143,7 +2143,7 @@ func (s *state) condBranch(cond *Node, yes, no *ssa.Block, likely int8) {
21432143 c := s .expr (cond )
21442144 b := s .endBlock ()
21452145 b .Kind = ssa .BlockIf
2146- b .Control = c
2146+ b .SetControl ( c )
21472147 b .Likely = ssa .BranchPrediction (likely ) // gc and ssa both use -1/0/+1 for likeliness
21482148 b .AddEdgeTo (yes )
21492149 b .AddEdgeTo (no )
@@ -2396,7 +2396,7 @@ func (s *state) call(n *Node, k callKind) *ssa.Value {
23962396 s .vars [& memVar ] = call
23972397 b := s .endBlock ()
23982398 b .Kind = ssa .BlockCall
2399- b .Control = call
2399+ b .SetControl ( call )
24002400 b .AddEdgeTo (bNext )
24012401 if k == callDefer {
24022402 // Add recover edge to exit code.
@@ -2654,7 +2654,7 @@ func (s *state) nilCheck(ptr *ssa.Value) {
26542654 chk := s .newValue2 (ssa .OpNilCheck , ssa .TypeVoid , ptr , s .mem ())
26552655 b := s .endBlock ()
26562656 b .Kind = ssa .BlockCheck
2657- b .Control = chk
2657+ b .SetControl ( chk )
26582658 bNext := s .f .NewBlock (ssa .BlockPlain )
26592659 b .AddEdgeTo (bNext )
26602660 s .startBlock (bNext )
@@ -2692,7 +2692,7 @@ func (s *state) sliceBoundsCheck(idx, len *ssa.Value) {
26922692func (s * state ) check (cmp * ssa.Value , fn * Node ) {
26932693 b := s .endBlock ()
26942694 b .Kind = ssa .BlockIf
2695- b .Control = cmp
2695+ b .SetControl ( cmp )
26962696 b .Likely = ssa .BranchLikely
26972697 bNext := s .f .NewBlock (ssa .BlockPlain )
26982698 line := s .peekLine ()
@@ -2740,15 +2740,15 @@ func (s *state) rtcall(fn *Node, returns bool, results []*Type, args ...*ssa.Val
27402740 b := s .endBlock ()
27412741 if ! returns {
27422742 b .Kind = ssa .BlockExit
2743- b .Control = call
2743+ b .SetControl ( call )
27442744 call .AuxInt = off
27452745 if len (results ) > 0 {
27462746 Fatalf ("panic call can't have results" )
27472747 }
27482748 return nil
27492749 }
27502750 b .Kind = ssa .BlockCall
2751- b .Control = call
2751+ b .SetControl ( call )
27522752 bNext := s .f .NewBlock (ssa .BlockPlain )
27532753 b .AddEdgeTo (bNext )
27542754 s .startBlock (bNext )
@@ -2793,7 +2793,7 @@ func (s *state) insertWBmove(t *Type, left, right *ssa.Value, line int32) {
27932793 b := s .endBlock ()
27942794 b .Kind = ssa .BlockIf
27952795 b .Likely = ssa .BranchUnlikely
2796- b .Control = flag
2796+ b .SetControl ( flag )
27972797 b .AddEdgeTo (bThen )
27982798 b .AddEdgeTo (bElse )
27992799
@@ -2838,7 +2838,7 @@ func (s *state) insertWBstore(t *Type, left, right *ssa.Value, line int32) {
28382838 b := s .endBlock ()
28392839 b .Kind = ssa .BlockIf
28402840 b .Likely = ssa .BranchUnlikely
2841- b .Control = flag
2841+ b .SetControl ( flag )
28422842 b .AddEdgeTo (bThen )
28432843 b .AddEdgeTo (bElse )
28442844
@@ -3049,7 +3049,7 @@ func (s *state) slice(t *Type, v, i, j, k *ssa.Value) (p, l, c *ssa.Value) {
30493049 b := s .endBlock ()
30503050 b .Kind = ssa .BlockIf
30513051 b .Likely = ssa .BranchLikely
3052- b .Control = cmp
3052+ b .SetControl ( cmp )
30533053
30543054 // Generate code for non-zero length slice case.
30553055 nz := s .f .NewBlock (ssa .BlockPlain )
@@ -3150,7 +3150,7 @@ func (s *state) uintTofloat(cvttab *u2fcvtTab, n *Node, x *ssa.Value, ft, tt *Ty
31503150 cmp := s .newValue2 (cvttab .geq , Types [TBOOL ], x , s .zeroVal (ft ))
31513151 b := s .endBlock ()
31523152 b .Kind = ssa .BlockIf
3153- b .Control = cmp
3153+ b .SetControl ( cmp )
31543154 b .Likely = ssa .BranchLikely
31553155
31563156 bThen := s .f .NewBlock (ssa .BlockPlain )
@@ -3198,7 +3198,7 @@ func (s *state) referenceTypeBuiltin(n *Node, x *ssa.Value) *ssa.Value {
31983198 cmp := s .newValue2 (ssa .OpEqPtr , Types [TBOOL ], x , nilValue )
31993199 b := s .endBlock ()
32003200 b .Kind = ssa .BlockIf
3201- b .Control = cmp
3201+ b .SetControl ( cmp )
32023202 b .Likely = ssa .BranchUnlikely
32033203
32043204 bThen := s .f .NewBlock (ssa .BlockPlain )
@@ -3269,7 +3269,7 @@ func (s *state) floatToUint(cvttab *f2uCvtTab, n *Node, x *ssa.Value, ft, tt *Ty
32693269 cmp := s .newValue2 (cvttab .ltf , Types [TBOOL ], x , twoToThe63 )
32703270 b := s .endBlock ()
32713271 b .Kind = ssa .BlockIf
3272- b .Control = cmp
3272+ b .SetControl ( cmp )
32733273 b .Likely = ssa .BranchLikely
32743274
32753275 bThen := s .f .NewBlock (ssa .BlockPlain )
@@ -3318,7 +3318,7 @@ func (s *state) ifaceType(n *Node, v *ssa.Value) *ssa.Value {
33183318 isnonnil := s .newValue2 (ssa .OpNeqPtr , Types [TBOOL ], tab , s .constNil (byteptr ))
33193319 b := s .endBlock ()
33203320 b .Kind = ssa .BlockIf
3321- b .Control = isnonnil
3321+ b .SetControl ( isnonnil )
33223322 b .Likely = ssa .BranchLikely
33233323
33243324 bLoad := s .f .NewBlock (ssa .BlockPlain )
@@ -3360,7 +3360,7 @@ func (s *state) dottype(n *Node, commaok bool) (res, resok *ssa.Value) {
33603360 cond := s .newValue2 (ssa .OpEqPtr , Types [TBOOL ], typ , target )
33613361 b := s .endBlock ()
33623362 b .Kind = ssa .BlockIf
3363- b .Control = cond
3363+ b .SetControl ( cond )
33643364 b .Likely = ssa .BranchLikely
33653365
33663366 byteptr := Ptrto (Types [TUINT8 ])
0 commit comments