This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Replace map with set in getReqFeatures
ClosedPublic

Authored by sabuasal on May 1 2019, 4:19 PM.

Details

Summary

Use a set in getReqFeatures() in RISCVCompressInstEmitter instead of a map
because the index we save is not needed.

This also fixes bug 41666.

Diff Detail

Repository
rL LLVM

Event Timeline

sabuasal created this revision.May 1 2019, 4:19 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 1 2019, 4:19 PM
asb accepted this revision.May 2 2019, 11:51 PM

LGTM!

This revision is now accepted and ready to land.May 2 2019, 11:51 PM
asb added a comment.May 23 2019, 7:00 AM

Hi @sabuasal - are you happy to commit this? (Nick's suggestion to add #include <set> is of course a good one too).

Hi @asb

Apologies for the late response

Thanks fr the review, I'll add the include and commit.

This revision was automatically updated to reflect the committed changes.