mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile/internal/gc: make SSAGenFPJump a method of SSAGenState
Change-Id: Ie22a08c93dfcfd4b336e7b158415448dd55b2c11 Reviewed-on: https://go-review.googlesource.com/38407 Run-TryBot: Matthew Dempsky <mdempsky@google.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
cfb3c8df62
commit
22ea7fc1a9
3 changed files with 5 additions and 5 deletions
|
|
@ -945,10 +945,10 @@ func ssaGenBlock(s *gc.SSAGenState, b, next *ssa.Block) {
|
||||||
p.To.Sym = b.Aux.(*obj.LSym)
|
p.To.Sym = b.Aux.(*obj.LSym)
|
||||||
|
|
||||||
case ssa.BlockAMD64EQF:
|
case ssa.BlockAMD64EQF:
|
||||||
gc.SSAGenFPJump(s, b, next, &eqfJumps)
|
s.FPJump(b, next, &eqfJumps)
|
||||||
|
|
||||||
case ssa.BlockAMD64NEF:
|
case ssa.BlockAMD64NEF:
|
||||||
gc.SSAGenFPJump(s, b, next, &nefJumps)
|
s.FPJump(b, next, &nefJumps)
|
||||||
|
|
||||||
case ssa.BlockAMD64EQ, ssa.BlockAMD64NE,
|
case ssa.BlockAMD64EQ, ssa.BlockAMD64NE,
|
||||||
ssa.BlockAMD64LT, ssa.BlockAMD64GE,
|
ssa.BlockAMD64LT, ssa.BlockAMD64GE,
|
||||||
|
|
|
||||||
|
|
@ -4438,7 +4438,7 @@ func (s *SSAGenState) oneFPJump(b *ssa.Block, jumps *FloatingEQNEJump, likely ss
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func SSAGenFPJump(s *SSAGenState, b, next *ssa.Block, jumps *[2][2]FloatingEQNEJump) {
|
func (s *SSAGenState) FPJump(b, next *ssa.Block, jumps *[2][2]FloatingEQNEJump) {
|
||||||
likely := b.Likely
|
likely := b.Likely
|
||||||
switch next {
|
switch next {
|
||||||
case b.Succs[0].Block():
|
case b.Succs[0].Block():
|
||||||
|
|
|
||||||
|
|
@ -807,10 +807,10 @@ func ssaGenBlock(s *gc.SSAGenState, b, next *ssa.Block) {
|
||||||
p.To.Sym = b.Aux.(*obj.LSym)
|
p.To.Sym = b.Aux.(*obj.LSym)
|
||||||
|
|
||||||
case ssa.Block386EQF:
|
case ssa.Block386EQF:
|
||||||
gc.SSAGenFPJump(s, b, next, &eqfJumps)
|
s.FPJump(b, next, &eqfJumps)
|
||||||
|
|
||||||
case ssa.Block386NEF:
|
case ssa.Block386NEF:
|
||||||
gc.SSAGenFPJump(s, b, next, &nefJumps)
|
s.FPJump(b, next, &nefJumps)
|
||||||
|
|
||||||
case ssa.Block386EQ, ssa.Block386NE,
|
case ssa.Block386EQ, ssa.Block386NE,
|
||||||
ssa.Block386LT, ssa.Block386GE,
|
ssa.Block386LT, ssa.Block386GE,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue