InstrProf: Don't call std::unique twice here