[llvm] [RISCV][VLOpt] Move OperandInfo into anonymous namespace. Move getEMULEqualsEEWDivSEWTimesLMUL out of RISCVVType namespace. NFC (PR #125138)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 30 15:41:11 PST 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 b3458fdec5e183b49c634b72b828630bb6972400 4bf34a5278164fd96158a197fbadb8422453dd45 --extensions 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/RISCVVLOptimizer.cpp b/llvm/lib/Target/RISCV/RISCVVLOptimizer.cpp
index 3f3f396ec8..4516d662bc 100644
--- a/llvm/lib/Target/RISCV/RISCVVLOptimizer.cpp
+++ b/llvm/lib/Target/RISCV/RISCVVLOptimizer.cpp
@@ -766,8 +766,7 @@ getOperandInfo(const MachineOperand &MO, const MachineRegisterInfo *MRI) {
};
// All others have EMUL=EEW/SEW*LMUL
- return OperandInfo(getEMULEqualsEEWDivSEWTimesLMUL(*Log2EEW, MI),
- *Log2EEW);
+ return OperandInfo(getEMULEqualsEEWDivSEWTimesLMUL(*Log2EEW, MI), *Log2EEW);
}
/// Return true if this optimization should consider MI for VL reduction. This
``````````
</details>
https://github.com/llvm/llvm-project/pull/125138
More information about the llvm-commits
mailing list