[llvm] [RISCV][VLOPT] Added support for vmv.s.x and vfmv.s.f (PR #149562)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 27 12:09:55 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 HEAD~1 HEAD --extensions cpp -- llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp llvm/lib/Target/RISCV/RISCVVLOptimizer.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp b/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
index ec2a1a286..a00ae20c9 100644
--- a/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
+++ b/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
@@ -1548,9 +1548,9 @@ void RISCVInsertVSETVLI::doPRE(MachineBasicBlock &MBB) {
// Filter out loops
SmallVector<MachineBasicBlock *, 4> Preds = {MBB.predecessors().begin(),
- MBB.predecessors().end()};
+ MBB.predecessors().end()};
Preds.erase(std::remove_if(Preds.begin(), Preds.end(),
- [&](MachineBasicBlock *P) { return P == &MBB; }),
+ [&](MachineBasicBlock *P) { return P == &MBB; }),
Preds.end());
// Only works for one Pred for now
@@ -1640,9 +1640,9 @@ void RISCVInsertVSETVLI::doPRE(MachineBasicBlock &MBB) {
}
LLVM_DEBUG(dbgs() << "PRE VSETVLI 3 from " << MBB.getName() << " to "
- << UnavailablePred->getName() << "\n"
- << " Old state: " << OldInfo << "\n"
- << " New state: " << CurInfo << "\n");
+ << UnavailablePred->getName() << "\n"
+ << " Old state: " << OldInfo << "\n"
+ << " New state: " << CurInfo << "\n");
if (CurInfo != OldInfo || TransitionsRemoved <= 0)
// Issues 1 and 2 above
``````````
</details>
https://github.com/llvm/llvm-project/pull/149562
More information about the llvm-commits
mailing list