ir: whitespace and formatting cleanup