[llvm] [RISCV][IA] Support masked.load for deinterleaveN matching (PR #149556)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 18 11:31:35 PDT 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 HEAD~1 HEAD --extensions cpp -- llvm/lib/CodeGen/InterleavedAccessPass.cpp llvm/lib/Target/RISCV/RISCVInterleavedAccess.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/CodeGen/InterleavedAccessPass.cpp b/llvm/lib/CodeGen/InterleavedAccessPass.cpp
index 525ef3252..1a4e21edf 100644
--- a/llvm/lib/CodeGen/InterleavedAccessPass.cpp
+++ b/llvm/lib/CodeGen/InterleavedAccessPass.cpp
@@ -630,7 +630,7 @@ bool InterleavedAccessImpl::lowerDeinterleaveIntrinsic(
     case Intrinsic::vp_load:
       WideMask = II->getOperand(1);
       break;
-    case  Intrinsic::masked_load:
+    case Intrinsic::masked_load:
       WideMask = II->getOperand(2);
       break;
     }
@@ -640,8 +640,8 @@ bool InterleavedAccessImpl::lowerDeinterleaveIntrinsic(
       return false;
 
     LLVM_DEBUG(dbgs() << "IA: Found a vp.load or masked.load with deinterleave"
-                      << " intrinsic " << *DI << " and factor = "
-                      << Factor << "\n");
+                      << " intrinsic " << *DI << " and factor = " << Factor
+                      << "\n");
   }
 
   // Try and match this with target specific intrinsics.

``````````

</details>


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


More information about the llvm-commits mailing list