Normalize IR created by high level IR builder to simplify subsequent passes