This is an archive of the discontinued LLVM Phabricator instance.

[tablegen] Avoid creating a temporary vector in getInstructionCase
ClosedPublic

Authored by alexander-shaposhnikov on Jul 3 2017, 5:23 PM.

Details

Diff Detail

Repository
rL LLVM

Event Timeline

dblaikie edited edge metadata.Jul 3 2017, 5:50 PM

Might be better to range-for-ify the loops that use Vals, and call R->getValues() directly in the range for range expression?

dblaikie accepted this revision.Jul 3 2017, 6:03 PM

looks good - thanks!

This revision is now accepted and ready to land.Jul 3 2017, 6:03 PM
This revision was automatically updated to reflect the committed changes.