[llvm] [RISCV] Rematerialize load (PR #73924)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 11 20:20:31 PST 2023
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 d11e54f3fe697e2f6a88ed45c12622ccdb55c2e7 d74e066a5eb7e32e591d11d584d12c43f206fc94 -- llvm/lib/CodeGen/RegisterCoalescer.cpp llvm/lib/Target/RISCV/RISCVInstrInfo.cpp llvm/lib/Target/RISCV/RISCVInstrInfo.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/CodeGen/RegisterCoalescer.cpp b/llvm/lib/CodeGen/RegisterCoalescer.cpp
index 0fb24c68ef..2d44f58494 100644
--- a/llvm/lib/CodeGen/RegisterCoalescer.cpp
+++ b/llvm/lib/CodeGen/RegisterCoalescer.cpp
@@ -1700,7 +1700,7 @@ MachineInstr *RegisterCoalescer::eliminateUndefCopy(MachineInstr *CopyMI) {
for (unsigned i = CopyMI->getNumOperands(); i != 0; --i) {
MachineOperand &MO = CopyMI->getOperand(i-1);
if (MO.isReg() && MO.isUse())
- CopyMI->removeOperand(i-1);
+ CopyMI->removeOperand(i - 1);
}
LLVM_DEBUG(dbgs() << "\tReplaced copy of <undef> value with an "
"implicit def\n");
``````````
</details>
https://github.com/llvm/llvm-project/pull/73924
More information about the llvm-commits
mailing list