Avoid creation of nested blocks in the IR

Avoid creation of nested blocks in the IR