Skip to content

Commit 4642d14

Browse files
use DenseMap instead of unordered_map
1 parent 639cce4 commit 4642d14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/IR/AutoUpgrade.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
//===----------------------------------------------------------------------===//
1414

1515
#include "llvm/IR/AutoUpgrade.h"
16+
#include "llvm/ADT/DenseMap.h"
1617
#include "llvm/ADT/StringExtras.h"
1718
#include "llvm/ADT/StringRef.h"
1819
#include "llvm/ADT/StringSwitch.h"
@@ -48,7 +49,6 @@
4849
#include "llvm/TargetParser/Triple.h"
4950
#include <cstring>
5051
#include <numeric>
51-
#include <unordered_map>
5252

5353
using namespace llvm;
5454

@@ -4359,7 +4359,7 @@ void llvm::UpgradeIntrinsicCall(CallBase *CI, Function *NewFn) {
43594359
const std::string prefix_amdgcn = "amdgcn.";
43604360
const std::string prefix_dbg = "dbg.";
43614361

4362-
std::unordered_map<StringRef, UpgradeFunc> lookupTable;
4362+
DenseMap<StringRef, UpgradeFunc> lookupTable;
43634363
lookupTable[prefix_x86] = upgradeX86IntrinsicCall;
43644364
lookupTable[prefix_nvvm] = upgradeNVVMIntrinsicCall;
43654365
lookupTable[prefix_aarch64] = upgradeAArch64IntrinsicCall;

0 commit comments

Comments
 (0)