Skip to content

Commit

Permalink
[TableGen] Avoid repeated hash lookups (NFC) (#107710)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazutakahirata authored Sep 7, 2024
1 parent 9c86a7e commit a0c43be
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions llvm/utils/TableGen/DXILEmitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -402,10 +402,8 @@ static void emitDXILOperationTable(std::vector<DXILOperationDesc> &Ops,
for (auto &Op : Ops) {
OpStrings.add(Op.OpName);

if (ClassSet.contains(Op.OpClass))
continue;
ClassSet.insert(Op.OpClass);
OpClassStrings.add(Op.OpClass.data());
if (ClassSet.insert(Op.OpClass).second)
OpClassStrings.add(Op.OpClass.data());
}

// Layout names.
Expand Down

0 comments on commit a0c43be

Please sign in to comment.