[llvm] Add support for single reductions in ComplexDeinterleavingPass (PR #112875)

Sam Tebbs via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 29 08:49:36 PDT 2024


================
@@ -1557,13 +1736,42 @@ void ComplexDeinterleavingGraph::identifyReductionNodes() {
         break;
       }
     }
+
+    auto *Real = OperationInstruction[i];
+    // We want to check that we have 2 operands, but the function attributes
+    // being counted as operands bloats this value.
+    if (Real->getNumOperands() < 2)
+      continue;
+
+    RealPHI = ReductionInfo[Real].first;
+    ImagPHI = nullptr;
+    PHIsFound = false;
+    dbgs() << "identifyNode from Phi " << *RealPHI << " / " << *Real << "\n";
----------------
SamTebbs33 wrote:

Same here.

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


More information about the llvm-commits mailing list