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

Authored by fhahn on Wed, Oct 10, 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
fhahn created this revision.Wed, Oct 10, 10:12 AM
rengolin accepted this revision.Wed, Oct 10, 10:16 AM

Good catch! LGTM, thanks!

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