[llvm] Add late optimization pass for riscv (PR #117060)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 20 13:40:27 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 b49c4af186a6de8f201ed6a4c326ebf822d4fd84 f75f6a174387487d99d1c98a44bdbd56fec6fc6b --extensions cpp,h -- llvm/lib/Target/RISCV/RISCVLatePeephole.cpp llvm/lib/Target/RISCV/RISCV.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/RISCVLatePeephole.cpp b/llvm/lib/Target/RISCV/RISCVLatePeephole.cpp
index 11add97aa8..d30cbdf68b 100644
--- a/llvm/lib/Target/RISCV/RISCVLatePeephole.cpp
+++ b/llvm/lib/Target/RISCV/RISCVLatePeephole.cpp
@@ -59,7 +59,8 @@ char RISCVLatePeepholeOpt::ID = 0;
INITIALIZE_PASS(RISCVLatePeepholeOpt, "riscv-late-peephole",
RISCV_LATE_PEEPHOLE_NAME, false, false)
-void RISCVLatePeepholeOpt::removeBlock(MachineBasicBlock *B, MachineBasicBlock *NewB) {
+void RISCVLatePeepholeOpt::removeBlock(MachineBasicBlock *B,
+ MachineBasicBlock *NewB) {
LLVM_DEBUG(dbgs() << "Removing block '#'" << B->getNumber() << "\n");
// Transfer the immediate dominator information from B to its descendants.
``````````
</details>
https://github.com/llvm/llvm-project/pull/117060
More information about the llvm-commits
mailing list