This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Remove unnecessary string usage in AsmPrinter
ClosedPublic

Authored by arsenm on Jul 5 2016, 11:24 AM.

Details

Reviewers
tstellarAMD
Summary

Registers are printed a lot, so don't create temporary
std::strings. Using char instead of a string to an ostream
saves a function call.

Diff Detail

Event Timeline

arsenm updated this revision to Diff 62772.Jul 5 2016, 11:24 AM
arsenm retitled this revision from to AMDGPU: Remove unnecessary string usage in AsmPrinter.
arsenm updated this object.
arsenm added a reviewer: tstellarAMD.
arsenm added a subscriber: llvm-commits.
tstellarAMD accepted this revision.Jul 5 2016, 1:35 PM
tstellarAMD edited edge metadata.

LGTM.

This revision is now accepted and ready to land.Jul 5 2016, 1:35 PM
arsenm closed this revision.Jul 5 2016, 3:14 PM

r274581