Small optimization in compiler pass5