[llvm] [LiveDebugValues][NVPTX]VarLocBasedImpl handle vregs, enable for NVPTX (PR #111456)

via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 7 17:21:50 PDT 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 39ac121309f5c270c8fdc97c45a845542dd78681 09739fe2176d712c493d706ac4abc6f746da66db --extensions cpp -- llvm/lib/CodeGen/LiveDebugValues/LiveDebugValues.cpp llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp llvm/lib/Target/NVPTX/NVPTXTargetMachine.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp b/llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp
index a19a5c19bd..d961c4ab9e 100644
--- a/llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp
+++ b/llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp
@@ -1248,7 +1248,7 @@ void VarLocBasedLDV::getUsedRegs(const VarLocSet &CollectFrom,
       LocIndex::rawIndexForReg(LocIndex::kFirstVirtualRegLocation);
   for (auto It = CollectFrom.find(FirstRegIndex),
             PhysEnd = CollectFrom.find(FirstInvalidIndex);
-            It != CollectFrom.end();) {
+       It != CollectFrom.end();) {
     if (It == PhysEnd) {
       It = CollectFrom.find(FirstVirtualRegIndex);
       continue;

``````````

</details>


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


More information about the llvm-commits mailing list