[llvm] [RISCV] Generate MIPS load/store pair instructions (PR #124717)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 12 01:57:03 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 de968c8e1c711728b62c441fbaa518c958882882 7e2c1432696b8f6dd91b2d76ee606e55e777a863 --extensions h,cpp -- llvm/lib/Target/RISCV/RISCVLoadStoreOptimizer.cpp llvm/lib/Target/RISCV/RISCVInstrInfo.cpp llvm/lib/Target/RISCV/RISCVInstrInfo.h llvm/lib/Target/RISCV/RISCVSubtarget.cpp llvm/lib/Target/RISCV/RISCVSubtarget.h llvm/lib/Target/RISCV/RISCVTargetMachine.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/RISCV/RISCVSubtarget.cpp b/llvm/lib/Target/RISCV/RISCVSubtarget.cpp
index 448dc18017..3de7a0d03e 100644
--- a/llvm/lib/Target/RISCV/RISCVSubtarget.cpp
+++ b/llvm/lib/Target/RISCV/RISCVSubtarget.cpp
@@ -67,10 +67,10 @@ static cl::opt<bool> UseMIPSLoadStorePairsOpt(
cl::desc("RISCV: Enable the load/store pair optimization pass"),
cl::init(false), cl::Hidden);
-static cl::opt<bool>
- UseMIPSLoadStoreBondingOpt("mips-riscv-load-store-bonding",
- cl::desc("RISCV: Optimize for load-store bonding"),
- cl::init(true), cl::Hidden);
+static cl::opt<bool> UseMIPSLoadStoreBondingOpt(
+ "mips-riscv-load-store-bonding",
+ cl::desc("RISCV: Optimize for load-store bonding"), cl::init(true),
+ cl::Hidden);
static cl::opt<bool>
UseCCMovInsn("riscv-ccmov", cl::desc("RISCV: Use 'mips.ccmov' instruction"),
``````````
</details>
https://github.com/llvm/llvm-project/pull/124717
More information about the llvm-commits
mailing list