aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
diff options
context:
space:
mode:
authorJeremy Morse <jeremy.morse@sony.com>2024-09-25 14:31:30 +0100
committerJeremy Morse <jeremy.morse@sony.com>2024-09-25 14:31:30 +0100
commit817e742ba55406688bf1f00557d24a60cfce962f (patch)
treed356056ef653068f4e2f282a3a6aa648ed3a2f00 /llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
parent3f37c517fbc40531571f8b9f951a8610b4789cd6 (diff)
downloadllvm-817e742ba55406688bf1f00557d24a60cfce962f.zip
llvm-817e742ba55406688bf1f00557d24a60cfce962f.tar.gz
llvm-817e742ba55406688bf1f00557d24a60cfce962f.tar.bz2
Revert "[NFC] Switch a number of DenseMaps to SmallDenseMaps for speedup (#109417)"
This reverts commit 3f37c517fbc40531571f8b9f951a8610b4789cd6. Lo and behold, I missed a unit test
Diffstat (limited to 'llvm/lib/Transforms/Utils/BasicBlockUtils.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/BasicBlockUtils.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp b/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
index 7bffd4d..4144c79 100644
--- a/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
+++ b/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
@@ -503,8 +503,7 @@ static bool removeRedundantDbgInstrsUsingBackwardScan(BasicBlock *BB) {
static bool
DbgVariableRecordsRemoveRedundantDbgInstrsUsingForwardScan(BasicBlock *BB) {
SmallVector<DbgVariableRecord *, 8> ToBeRemoved;
- SmallDenseMap<DebugVariable,
- std::pair<SmallVector<Value *, 4>, DIExpression *>, 4>
+ DenseMap<DebugVariable, std::pair<SmallVector<Value *, 4>, DIExpression *>>
VariableMap;
for (auto &I : *BB) {
for (DbgVariableRecord &DVR : filterDbgVars(I.getDbgRecordRange())) {
@@ -585,8 +584,7 @@ static bool removeRedundantDbgInstrsUsingForwardScan(BasicBlock *BB) {
return DbgVariableRecordsRemoveRedundantDbgInstrsUsingForwardScan(BB);
SmallVector<DbgValueInst *, 8> ToBeRemoved;
- SmallDenseMap<DebugVariable,
- std::pair<SmallVector<Value *, 4>, DIExpression *>, 4>
+ DenseMap<DebugVariable, std::pair<SmallVector<Value *, 4>, DIExpression *>>
VariableMap;
for (auto &I : *BB) {
if (DbgValueInst *DVI = dyn_cast<DbgValueInst>(&I)) {