Skip to content

Commit 918312c

Browse files
committed
Fix case where it fails to identify unrolled reductions
Also removed prematurely-added test
1 parent 42fba28 commit 918312c

File tree

2 files changed

+2
-172
lines changed

2 files changed

+2
-172
lines changed

llvm/lib/CodeGen/ComplexDeinterleavingPass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1546,11 +1546,10 @@ void ComplexDeinterleavingGraph::identifyReductionNodes() {
15461546
for (size_t i = 0; i < OperationInstruction.size(); ++i) {
15471547
if (Processed[i])
15481548
continue;
1549-
auto *Real = OperationInstruction[i];
15501549
for (size_t j = i + 1; j < OperationInstruction.size(); ++j) {
15511550
if (Processed[j])
15521551
continue;
1553-
1552+
auto *Real = OperationInstruction[i];
15541553
auto *Imag = OperationInstruction[j];
15551554
if (Real->getType() != Imag->getType())
15561555
continue;
@@ -1583,6 +1582,7 @@ void ComplexDeinterleavingGraph::identifyReductionNodes() {
15831582
}
15841583
}
15851584

1585+
auto *Real = OperationInstruction[i];
15861586
// We want to check that we have 2 operands, but the function attributes
15871587
// being counted as operands bloats this value.
15881588
if (Real->getNumOperands() < 2)

llvm/test/CodeGen/AArch64/complex-deinterleaving-cdot.ll

Lines changed: 0 additions & 170 deletions
This file was deleted.

0 commit comments

Comments
 (0)