aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/Debugify.cpp
diff options
context:
space:
mode:
authorJeremy Morse <jeremy.morse@sony.com>2025-07-18 11:31:52 +0100
committerGitHub <noreply@github.com>2025-07-18 11:31:52 +0100
commitc9d8b68676dbf51996a76475313088f750697343 (patch)
treeb173298135c208fd7e1869ca6764b314085ed46f /llvm/lib/Transforms/Utils/Debugify.cpp
parent4fbe88fc46989b5b4e3b8913a915c7a3cd188bdf (diff)
downloadllvm-c9d8b68676dbf51996a76475313088f750697343.zip
llvm-c9d8b68676dbf51996a76475313088f750697343.tar.gz
llvm-c9d8b68676dbf51996a76475313088f750697343.tar.bz2
[DebugInfo] Suppress lots of users of DbgValueInst (#149476)
This is another prune of dead code -- we never generate debug intrinsics nowadays, therefore there's no need for these codepaths to run. --------- Co-authored-by: Nikita Popov <github@npopov.com>
Diffstat (limited to 'llvm/lib/Transforms/Utils/Debugify.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/Debugify.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/llvm/lib/Transforms/Utils/Debugify.cpp b/llvm/lib/Transforms/Utils/Debugify.cpp
index a1f030a..4210ce6 100644
--- a/llvm/lib/Transforms/Utils/Debugify.cpp
+++ b/llvm/lib/Transforms/Utils/Debugify.cpp
@@ -808,9 +808,6 @@ bool checkDebugifyMetadata(Module &M,
// Find missing lines.
for (Instruction &I : instructions(F)) {
- if (isa<DbgValueInst>(&I))
- continue;
-
auto DL = I.getDebugLoc();
if (DL && DL.getLine() != 0) {
MissingLines.reset(DL.getLine() - 1);
@@ -839,10 +836,6 @@ bool checkDebugifyMetadata(Module &M,
for (DbgVariableRecord &DVR : filterDbgVars(I.getDbgRecordRange()))
if (DVR.isDbgValue() || DVR.isDbgAssign())
CheckForMisSized(&DVR);
- auto *DVI = dyn_cast<DbgValueInst>(&I);
- if (!DVI)
- continue;
- CheckForMisSized(DVI);
}
}