Open
Description
go/src/cmd/compile/internal/ssa/loopbce.go
Lines 175 to 182 in 6c3b5a2
This code here assumes the the first successor leads to the loop and that second successor break the loop.
it looks like ssagen always generate the for
keyword this way but if you write a loop using if ... { break }
inside for { ... }
this is usually inverted.