This is an archive of the discontinued LLVM Phabricator instance.

[LV] Use SmallVector instead of DenseMap in calculateRegisterUsage (NFC).
ClosedPublic

Authored by fhahn on Oct 10 2018, 10:12 AM.

Details

Summary

We assign indices sequentially for seen instructions, so we can just use
a vector and push back the seen instructions. No need for using a
DenseMap.

Diff Detail

Repository
rL LLVM

Event Timeline

fhahn created this revision.Oct 10 2018, 10:12 AM
rengolin accepted this revision.Oct 10 2018, 10:16 AM

Good catch! LGTM, thanks!

This revision is now accepted and ready to land.Oct 10 2018, 10:16 AM
This revision was automatically updated to reflect the committed changes.