[llvm] [RemoveDIs][DebugInfo] Handle DPVAssign in most transforms (PR #78986)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 22 11:11:38 PST 2024


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 8fab16c86c9860fa78022a97553761fcdccfa03e b9d29d83af1d27ee76d20fe1ba034f514c704193 -- llvm/include/llvm/IR/DebugInfo.h llvm/lib/Transforms/Coroutines/CoroFrame.cpp llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp llvm/lib/Transforms/InstCombine/InstructionCombining.cpp llvm/lib/Transforms/Scalar/ADCE.cpp llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp llvm/lib/Transforms/Utils/CodeExtractor.cpp llvm/lib/Transforms/Utils/InlineFunction.cpp llvm/lib/Transforms/Utils/Local.cpp llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp llvm/lib/Transforms/Utils/SimplifyCFG.cpp llvm/lib/Transforms/Utils/ValueMapper.cpp llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/Transforms/Utils/CodeExtractor.cpp b/llvm/lib/Transforms/Utils/CodeExtractor.cpp
index 7e334238d9..eee60969af 100644
--- a/llvm/lib/Transforms/Utils/CodeExtractor.cpp
+++ b/llvm/lib/Transforms/Utils/CodeExtractor.cpp
@@ -1594,7 +1594,7 @@ static void fixupDebugInfoPostExtraction(Function &OldFunc, Function &NewFunc,
         DPVsToDelete.push_back(&DPV);
         continue;
       }
-      if (DPV.isDbgAssign() && IsInvalidLocation(DPV.getAddress())){
+      if (DPV.isDbgAssign() && IsInvalidLocation(DPV.getAddress())) {
         DPVsToDelete.push_back(&DPV);
         continue;
       }

``````````

</details>


https://github.com/llvm/llvm-project/pull/78986


More information about the llvm-commits mailing list