[llvm] [MachineCP] Correctly handle register masks and sub-registers (PR #122472)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 10 07:21:13 PST 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 1332db36ee23f19eacf6a84bfda0f9c03a5706e7 756dc2800c6f80cfc7d3ac27c8fe9f87d8586d0f --extensions cpp -- llvm/lib/CodeGen/MachineCopyPropagation.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/CodeGen/MachineCopyPropagation.cpp b/llvm/lib/CodeGen/MachineCopyPropagation.cpp
index 2168cb51f7..d2579e2d1b 100644
--- a/llvm/lib/CodeGen/MachineCopyPropagation.cpp
+++ b/llvm/lib/CodeGen/MachineCopyPropagation.cpp
@@ -233,8 +233,10 @@ public:
/// Clobber all registers which are not preserved by RegMask, removing them
/// from the tracker's copy maps.
- void clobberRegistersExceptMask(const MachineOperand *RegMask, const TargetRegisterInfo &TRI,
- const TargetInstrInfo &TII, bool UseCopyInstr) {
+ void clobberRegistersExceptMask(const MachineOperand *RegMask,
+ const TargetRegisterInfo &TRI,
+ const TargetInstrInfo &TII,
+ bool UseCopyInstr) {
BitVector SafeRegUnits(TRI.getNumRegUnits());
for (unsigned SafeReg = 0, E = TRI.getNumRegs(); SafeReg < E; ++SafeReg)
``````````
</details>
https://github.com/llvm/llvm-project/pull/122472
More information about the llvm-commits
mailing list