Skip to content

Commit

Permalink
Fix case where it fails to identify unrolled reductions
Browse files Browse the repository at this point in the history
Also removed prematurely-added test
  • Loading branch information
NickGuy-Arm committed Oct 22, 2024
1 parent 42fba28 commit 918312c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 172 deletions.
4 changes: 2 additions & 2 deletions llvm/lib/CodeGen/ComplexDeinterleavingPass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1546,11 +1546,10 @@ void ComplexDeinterleavingGraph::identifyReductionNodes() {
for (size_t i = 0; i < OperationInstruction.size(); ++i) {
if (Processed[i])
continue;
auto *Real = OperationInstruction[i];
for (size_t j = i + 1; j < OperationInstruction.size(); ++j) {
if (Processed[j])
continue;

auto *Real = OperationInstruction[i];
auto *Imag = OperationInstruction[j];
if (Real->getType() != Imag->getType())
continue;
Expand Down Expand Up @@ -1583,6 +1582,7 @@ void ComplexDeinterleavingGraph::identifyReductionNodes() {
}
}

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)
Expand Down
170 changes: 0 additions & 170 deletions llvm/test/CodeGen/AArch64/complex-deinterleaving-cdot.ll

This file was deleted.

0 comments on commit 918312c

Please sign in to comment.