Generating IR Code: Optimizing