[llvm] [RISCV] Use DenseMap to track V0 definition. NFC (PR #84465)

via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 11 01:45:34 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 4cfd4a7896b5fd50274ec8573c259d7ad41741de cf7bc7aa311c1dcbd820a69b4c2ada768bb708b5 -- llvm/lib/Target/RISCV/RISCVFoldMasks.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/Target/RISCV/RISCVFoldMasks.cpp b/llvm/lib/Target/RISCV/RISCVFoldMasks.cpp
index e0b0f28291..2089f5dda6 100644
--- a/llvm/lib/Target/RISCV/RISCVFoldMasks.cpp
+++ b/llvm/lib/Target/RISCV/RISCVFoldMasks.cpp
@@ -204,7 +204,7 @@ bool RISCVFoldMasks::runOnMachineFunction(MachineFunction &MF) {
     const MachineInstr *CurrentV0Def = nullptr;
     for (const MachineInstr &MI : MBB) {
       if (MI.readsRegister(RISCV::V0, TRI))
-	V0Defs[&MI] = CurrentV0Def;
+        V0Defs[&MI] = CurrentV0Def;
 
       if (MI.definesRegister(RISCV::V0, TRI))
         CurrentV0Def = &MI;

``````````

</details>


https://github.com/llvm/llvm-project/pull/84465


More information about the llvm-commits mailing list