]> granicus.if.org Git - llvm/commit
[RISCV] Replace map with set in getReqFeatures
authorSameer AbuAsal <sabuasal@quicinc.com>
Mon, 10 Jun 2019 17:15:45 +0000 (17:15 +0000)
committerSameer AbuAsal <sabuasal@quicinc.com>
Mon, 10 Jun 2019 17:15:45 +0000 (17:15 +0000)
commit21022f999259e127498a1e99216c745544ca212e
tree0cb29a9639e34531bb88653193c4245d0e105b11
parentabf16a584fbba23be0b61b7e8789d8fa405b2744
 [RISCV] Replace map with set in getReqFeatures

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.

Reviewers: llvm-commits, apazos, asb, nickdesaulniers

Reviewed By: asb

Subscribers: Jim, nickdesaulniers, rbar, johnrusso, simoncook, niosHD, kito-cheng, shiva0217, jrtc27, zzheng, edward-jones, rogfer01, MartinMosbeck, brucehoult, the_o, rkruppe, PkmX, jocewei, psnobl, benna

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D61412

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@362968 91177308-0d34-0410-b5e6-96231b3b80d8
utils/TableGen/RISCVCompressInstEmitter.cpp