[llvm] [llvm][RISCV] Implement Zilsd load/store pair optimization (PR #158640)
    via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon Sep 15 07:04:12 PDT 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 origin/main HEAD --extensions cpp,h -- llvm/lib/Target/RISCV/RISCVZilsdOptimizer.cpp llvm/lib/Target/RISCV/RISCV.h llvm/lib/Target/RISCV/RISCVRegisterInfo.cpp llvm/lib/Target/RISCV/RISCVRegisterInfo.h llvm/lib/Target/RISCV/RISCVTargetMachine.cpp
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/RISCV/RISCVZilsdOptimizer.cpp b/llvm/lib/Target/RISCV/RISCVZilsdOptimizer.cpp
index 47d5abbbe..d4d6dd2f5 100644
--- a/llvm/lib/Target/RISCV/RISCVZilsdOptimizer.cpp
+++ b/llvm/lib/Target/RISCV/RISCVZilsdOptimizer.cpp
@@ -621,7 +621,8 @@ bool RISCVPostAllocZilsdOpt::runOnMachineFunction(MachineFunction &MF) {
 
 bool RISCVPostAllocZilsdOpt::isConsecutiveRegPair(Register First,
                                                   Register Second) {
-  // Special case: both registers are zero register - this is valid for storing zeros
+  // Special case: both registers are zero register - this is valid for storing
+  // zeros
   if (First == RISCV::X0 && Second == RISCV::X0)
     return true;
 
``````````
</details>
https://github.com/llvm/llvm-project/pull/158640
    
    
More information about the llvm-commits
mailing list