[llvm] [DebugInfo] Strip more debug-intrinsic code from local utils (PR #149037)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 16 03:47:45 PDT 2025
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff HEAD~1 HEAD --extensions cpp,h -- llvm/include/llvm/Transforms/Utils/Local.h llvm/include/llvm/Transforms/Utils/MemoryTaggingSupport.h llvm/lib/Transforms/InstCombine/InstructionCombining.cpp llvm/lib/Transforms/Scalar/SROA.cpp llvm/lib/Transforms/Utils/CloneFunction.cpp llvm/lib/Transforms/Utils/Local.cpp llvm/lib/Transforms/Utils/MemoryTaggingSupport.cpp llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp
index 72bc09431..2d1fa342b 100644
--- a/llvm/lib/Transforms/Utils/Local.cpp
+++ b/llvm/lib/Transforms/Utils/Local.cpp
@@ -2457,8 +2457,8 @@ static bool rewriteDebugUsers(
DomPoint.getParent()->insertDbgRecordAfter(DVR, &DomPoint);
Changed = true;
- // Users which otherwise aren't dominated by the replacement value must
- // be salvaged or deleted.
+ // Users which otherwise aren't dominated by the replacement value must
+ // be salvaged or deleted.
} else if (!DT.dominates(&DomPoint, MarkedInstr)) {
UndefOrSalvageDVR.insert(DVR);
}
diff --git a/llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp b/llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp
index 837bc0731..ccd7ee360 100644
--- a/llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp
+++ b/llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp
@@ -185,9 +185,7 @@ public:
ConvertDebugDeclareToDebugValue(DVR, NewPhi, DIB);
}
- void clear() {
- DVRAssigns.clear();
- }
+ void clear() { DVRAssigns.clear(); }
bool empty() { return DVRAssigns.empty(); }
};
@@ -613,8 +611,8 @@ rewriteSingleStoreAlloca(AllocaInst *AI, AllocaInfo &Info, LargeBlockInfo &LBI,
DIBuilder DIB(*AI->getModule(), /*AllowUnresolved*/ false);
// Update assignment tracking info for the store we're going to delete.
- Info.AssignmentTracking.updateForDeletedStore(
- Info.OnlyStore, DIB, DVRAssignsToDelete);
+ Info.AssignmentTracking.updateForDeletedStore(Info.OnlyStore, DIB,
+ DVRAssignsToDelete);
// Record debuginfo for the store and remove the declaration's
// debuginfo.
``````````
</details>
https://github.com/llvm/llvm-project/pull/149037
More information about the llvm-commits
mailing list