File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -1756,11 +1756,18 @@ void ComplexDeinterleavingGraph::identifyReductionNodes() {
17561756
17571757bool ComplexDeinterleavingGraph::checkNodes () {
17581758
1759+ bool FoundDeinterleaveNode = false ;
17591760 for (NodePtr N : CompositeNodes) {
17601761 if (!N->areOperandsValid ())
17611762 return false ;
1763+ if (N->Operation == ComplexDeinterleavingOperation::Deinterleave)
1764+ FoundDeinterleaveNode = true ;
17621765 }
17631766
1767+ // We need a deinterleave node in order to guarantee that we're working with complex numbers.
1768+ if (!FoundDeinterleaveNode)
1769+ return false ;
1770+
17641771 // Collect all instructions from roots to leaves
17651772 SmallPtrSet<Instruction *, 16 > AllInstructions;
17661773 SmallVector<Instruction *, 8 > Worklist;
You can’t perform that action at this time.
0 commit comments