This is an archive of the discontinued LLVM Phabricator instance.

[TableGen] Return StringRef from ValueTypeByHwMode::getMVTName
ClosedPublic

Authored by RKSimon on Sep 22 2017, 5:22 AM.

Details

Summary

Avoid unnecessary std::string creations during TypeSetByHwMode::writeToStream.

Found during investigations into PR28222

Diff Detail

Repository
rL LLVM

Event Timeline

RKSimon created this revision.Sep 22 2017, 5:22 AM
kparzysz accepted this revision.Sep 22 2017, 6:21 AM

This is good regardless of any future changes to replace getAsString.

This revision is now accepted and ready to land.Sep 22 2017, 6:21 AM
This revision was automatically updated to reflect the committed changes.