nir: Add an unstructured empty blocks optimization

77 jobs for !6850 with wip/nir-unstructured-opts
latest merge request