[llvm] [PowerPC] Ensure MI peephole knows about instr modified by combineRLWINM() (PR #97134)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 28 18:51:48 PDT 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 d70963a762850e74b79e178e006dc7861c2c94e5 f5c91e5f3553f5b807c7f5f818798e61efa0a249 -- llvm/lib/Target/PowerPC/PPCMIPeephole.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/PowerPC/PPCMIPeephole.cpp b/llvm/lib/Target/PowerPC/PPCMIPeephole.cpp
index 90c9912807..d13a66b8db 100644
--- a/llvm/lib/Target/PowerPC/PPCMIPeephole.cpp
+++ b/llvm/lib/Target/PowerPC/PPCMIPeephole.cpp
@@ -1292,7 +1292,7 @@ bool PPCMIPeephole::simplifyCode() {
if (MI.getOperand(1).isReg())
addRegToUpdate(MI.getOperand(1).getReg());
if (ToErase && ToErase->getOperand(1).isReg())
- for (auto UseReg: ToErase->explicit_uses())
+ for (auto UseReg : ToErase->explicit_uses())
if (UseReg.isReg())
addRegToUpdate(UseReg.getReg());
++NumRotatesCollapsed;
``````````
</details>
https://github.com/llvm/llvm-project/pull/97134
More information about the llvm-commits
mailing list