File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
llvm/lib/Transforms/InstCombine Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -546,7 +546,8 @@ Instruction *InstCombinerImpl::visitExtractElementInst(ExtractElementInst &EI) {
546546 // We know such a splat must be reading from the first operand, even
547547 // in the case of scalable vectors (vscale is always > 0).
548548 if (SplatIndex == 0 )
549- return ExtractElementInst::Create (SVI->getOperand (0 ), Builder.getInt64 (0 ));
549+ return ExtractElementInst::Create (SVI->getOperand (0 ),
550+ Builder.getInt64 (0 ));
550551 // Restrict the non-zero index case to fixed-length vectors
551552 if (isa<FixedVectorType>(SVI->getType ())) {
552553
@@ -556,13 +557,14 @@ Instruction *InstCombinerImpl::visitExtractElementInst(ExtractElementInst &EI) {
556557 int SrcIdx = -2 ;
557558 if (SplatIndex != PoisonMaskElem)
558559 SrcIdx = SplatIndex;
559- else if (ConstantInt* CI = dyn_cast<ConstantInt>(Index))
560+ else if (ConstantInt * CI = dyn_cast<ConstantInt>(Index))
560561 SrcIdx = SVI->getMaskValue (CI->getZExtValue ());
561562
562563 if (SrcIdx != -2 ) {
563564 Value *Src;
564- unsigned LHSWidth = cast<FixedVectorType>(SVI->getOperand (0 )->getType ())
565- ->getNumElements ();
565+ unsigned LHSWidth =
566+ cast<FixedVectorType>(SVI->getOperand (0 )->getType ())
567+ ->getNumElements ();
566568
567569 if (SrcIdx < 0 )
568570 return replaceInstUsesWith (EI, PoisonValue::get (EI.getType ()));
You can’t perform that action at this time.
0 commit comments