[llvm] [Thumb1] Resolve FIXME: use 'mov hi, $src; mov $dst, hi' (PR #81908)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 16 13:55:52 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 d8278b682386f51dfba204849c624672a3df40c7 1740320afa884a42dcd8ba88088217c6ae7ada2c -- llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp llvm/lib/Target/ARM/Thumb1InstrInfo.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/ARM/Thumb1InstrInfo.cpp b/llvm/lib/Target/ARM/Thumb1InstrInfo.cpp
index cf955b0e92..b5d118de1c 100644
--- a/llvm/lib/Target/ARM/Thumb1InstrInfo.cpp
+++ b/llvm/lib/Target/ARM/Thumb1InstrInfo.cpp
@@ -82,7 +82,8 @@ void Thumb1InstrInfo::copyPhysReg(MachineBasicBlock &MBB,
MF, RegInfo->getRegClass(ARM::hGPRRegClassID));
// Avoid messing with these
- // TODO: We can use lr as a temporary only if we know it will be restored by the callee
+ // TODO: We can use lr as a temporary only if we know it will be restored by
+ // the callee
GPRsNoLRSP.reset(ARM::LR);
GPRsNoLRSP.reset(ARM::SP);
GPRsNoLRSP.reset(ARM::PC);
``````````
</details>
https://github.com/llvm/llvm-project/pull/81908
More information about the llvm-commits
mailing list