Adding loop fusion in the generated code may improve performance. Especially when dealing with loops on `elems`, `nodes`, ...