File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
llvm/lib/Transforms/Vectorize Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -7217,9 +7217,9 @@ static void fixReductionScalarResumeWhenVectorizingEpilog(
7217
7217
((CmpOp == StartV && isGuaranteedNotToBeUndefOrPoison (CmpOp))));
7218
7218
assert (IsExpectedPattern && " Unexpected reduction resume pattern" );
7219
7219
MainResumeValue = OrigResumeV;
7220
- } else {
7221
- if ( auto *VPI = dyn_cast<VPInstruction>(EpiRedHeaderPhi->getStartValue ()))
7222
- MainResumeValue = VPI->getOperand (0 )->getUnderlyingValue ();
7220
+ } else if ( auto *VPI =
7221
+ dyn_cast<VPInstruction>(EpiRedHeaderPhi->getStartValue ())) {
7222
+ MainResumeValue = VPI->getOperand (0 )->getUnderlyingValue ();
7223
7223
}
7224
7224
7225
7225
PHINode *MainResumePhi = cast<PHINode>(MainResumeValue);
Original file line number Diff line number Diff line change @@ -833,9 +833,9 @@ bool VPlanTransforms::legalizeUnclassifiedPhis(VPlan &Plan) {
833
833
// The incoming value must be a min/max instrinsic.
834
834
// TODO: Also handle the select variant.
835
835
Intrinsic::ID ID = Intrinsic::not_intrinsic;
836
- if (auto *WideInt = dyn_cast<VPWidenIntrinsicRecipe>(MinMaxOp))
836
+ if (auto *WideInt = dyn_cast<VPWidenIntrinsicRecipe>(MinMaxOp)) {
837
837
ID = WideInt->getVectorIntrinsicID ();
838
- else {
838
+ } else {
839
839
auto *RepR = dyn_cast<VPReplicateRecipe>(MinMaxOp);
840
840
if (!RepR || !isa<IntrinsicInst>(RepR->getUnderlyingInstr ()))
841
841
return false ;
You can’t perform that action at this time.
0 commit comments