[llvm] [VPlan] Add VPInstruction to unpack vector values to scalars. (PR #155670)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 4 13:57:34 PDT 2025


================
@@ -1224,6 +1224,13 @@ static void simplifyRecipe(VPRecipeBase &R, VPTypeAnalysis &TypeInfo) {
     return;
   }
 
+  uint64_t Idx;
+  if (match(&R, m_ExtractElement(m_BuildVector(), m_ConstantInt(Idx)))) {
+    auto *BuildVector = cast<VPInstruction>(R.getOperand(0));
----------------
fhahn wrote:

Hmm, I think it could, but would be inconsistent with other matchers, where the inner matcher match the operands.

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


More information about the llvm-commits mailing list