@@ -2186,8 +2186,6 @@ Value *ComplexDeinterleavingGraph::replaceNode(IRBuilderBase &Builder,
21862186 llvm_unreachable (" Deinterleave node should already have ReplacementNode" );
21872187 break ;
21882188 case ComplexDeinterleavingOperation::Splat: {
2189- auto *NewTy = VectorType::getDoubleElementsVectorType (
2190- cast<VectorType>(Node->Real ->getType ()));
21912189 auto *R = dyn_cast<Instruction>(Node->Real );
21922190 auto *I = dyn_cast<Instruction>(Node->Imag );
21932191 if (R && I) {
@@ -2225,8 +2223,6 @@ Value *ComplexDeinterleavingGraph::replaceNode(IRBuilderBase &Builder,
22252223 auto *MaskImag = cast<Instruction>(Node->Imag )->getOperand (0 );
22262224 auto *A = replaceNode (Builder, Node->Operands [0 ]);
22272225 auto *B = replaceNode (Builder, Node->Operands [1 ]);
2228- auto *NewMaskTy = VectorType::getDoubleElementsVectorType (
2229- cast<VectorType>(MaskReal->getType ()));
22302226 auto *NewMask = Builder.CreateVectorInterleave ({MaskReal, MaskImag});
22312227 ReplacementNode = Builder.CreateSelect (NewMask, A, B);
22322228 break ;
@@ -2279,9 +2275,6 @@ void ComplexDeinterleavingGraph::processReductionOperation(
22792275 auto *OldPHIImag = ReductionInfo[Imag].first ;
22802276 auto *NewPHI = OldToNewPHI[OldPHIReal];
22812277
2282- auto *VTy = cast<VectorType>(Real->getType ());
2283- auto *NewVTy = VectorType::getDoubleElementsVectorType (VTy);
2284-
22852278 // We have to interleave initial origin values coming from IncomingBlock
22862279 Value *InitReal = OldPHIReal->getIncomingValueForBlock (Incoming);
22872280 Value *InitImag = OldPHIImag->getIncomingValueForBlock (Incoming);
0 commit comments