Skip to content

Commit 3b9ea7b

Browse files
authored
Fix build warnings after 6fbc397 (#151100)
1 parent 68152f1 commit 3b9ea7b

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

llvm/lib/CodeGen/ComplexDeinterleavingPass.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)