aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
diff options
context:
space:
mode:
authorJorge Gorbe Moya <jgorbe@google.com>2024-05-03 13:05:08 -0700
committerJorge Gorbe Moya <jgorbe@google.com>2024-05-03 13:05:08 -0700
commit2cde0e2f9779bf755ee9fd97e497bc948296c0c7 (patch)
treedf4a2a96a25f28f75fc5a5424007f22cd51f6522 /llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
parent9299a136dc34be56ada6d957a438d9d5a7c91df2 (diff)
downloadllvm-2cde0e2f9779bf755ee9fd97e497bc948296c0c7.zip
llvm-2cde0e2f9779bf755ee9fd97e497bc948296c0c7.tar.gz
llvm-2cde0e2f9779bf755ee9fd97e497bc948296c0c7.tar.bz2
Revert "[BasicBlockUtils] Remove redundant llvm.dbg instructions after blocks to reduce compile time (#89069)"
This reverts commit 2e3e0868748635b779ba89a772eae3664bd822e4. It caused quadratic slowdown at compilation time in some cases. See the comments in the original PR: https://github.com/llvm/llvm-project/pull/89069
Diffstat (limited to 'llvm/lib/Transforms/Utils/BasicBlockUtils.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/BasicBlockUtils.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp b/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
index 51fc28e..b9ed077 100644
--- a/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
+++ b/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
@@ -333,10 +333,6 @@ bool llvm::MergeBlockIntoPredecessor(BasicBlock *BB, DomTreeUpdater *DTU,
// Finally, erase the old block and update dominator info.
DeleteDeadBlock(BB, DTU);
- // Remove redundant "llvm.dbg" instrunctions after blocks have been merged.
- if (PredBB->getParent()->getSubprogram())
- RemoveRedundantDbgInstrs(PredBB);
-
return true;
}