Does block order matter?

In my generator I find it convenient to just attach blocks as I create
them, rather than try and maintain some kind of forward flowing order.
Does this hinder the optimizers in any way, or will generally any order
be okay?

Hi,

In my generator I find it convenient to just attach blocks as I create
them, rather than try and maintain some kind of forward flowing order.
Does this hinder the optimizers in any way, or will generally any order
be okay?

I think pretty much everyone does the same as you. I've got to admit that
basic block order can matter, though it's not really supposed to. That's
the kind of thing that optimizers exist for, so if you find an egregious
example of basic block ordering making a difference, I suggest you open a
bug report asking for it to be fixed by having the optimizers reorder the
basic blocks better.

Ciao, Duncan.