From: Florian Hahn Date: Wed, 3 Nov 2021 13:26:15 +0000 (+0100) Subject: [LV] Drop unneeded use of getVPSingleValue (NFC). X-Git-Tag: upstream/15.0.7~26833 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=64bc31ee933df0163ad1e1bb763ef631526b40c6;p=platform%2Fupstream%2Fllvm.git [LV] Drop unneeded use of getVPSingleValue (NFC). VPReductionPHIRecipe inherits from VPValue, so there's no need to call getVPSingleValue. --- diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp index 00f9cdd..47a9223 100644 --- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp +++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp @@ -4355,7 +4355,7 @@ void InnerLoopVectorizer::fixReduction(VPReductionPHIRecipe *PhiR, RdxDesc.getOpcode(), PhiTy, TargetTransformInfo::ReductionFlags())) { auto *VecRdxPhi = - cast(State.get(PhiR->getVPSingleValue(), Part)); + cast(State.get(PhiR, Part)); VecRdxPhi->setIncomingValueForBlock( LI->getLoopFor(LoopVectorBody)->getLoopLatch(), Sel); }