[llvm] [InstrRef] Skip clobbered EntryValue register recovery (PR #77938)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 12 07:31:00 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 39b2104b4a4e0990eddc763eab99b28e8deab953 46703fe9193573d2f1a73d0efe56a85b4e0dcba6 -- llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
index 71a0255bf3..c0082b580c 100644
--- a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
+++ b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
@@ -669,8 +669,7 @@ public:
DbgValueProperties Properties(MI);
// Ignore non-register locations, we don't transfer those.
- if (MI.isUndefDebugValue() ||
- MI.getDebugExpression()->isEntryValue() ||
+ if (MI.isUndefDebugValue() || MI.getDebugExpression()->isEntryValue() ||
all_of(MI.debug_operands(),
[](const MachineOperand &MO) { return !MO.isReg(); })) {
auto It = ActiveVLocs.find(Var);
``````````
</details>
https://github.com/llvm/llvm-project/pull/77938
More information about the llvm-commits
mailing list