Skip to content

Commit

Permalink
[LV] Drop unneeded use of getVPSingleValue (NFC).
Browse files Browse the repository at this point in the history
VPReductionPHIRecipe inherits from VPValue, so there's no need to call
getVPSingleValue.
  • Loading branch information
fhahn committed Nov 3, 2021
1 parent d7ac595 commit 64bc31e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
Expand Up @@ -4355,7 +4355,7 @@ void InnerLoopVectorizer::fixReduction(VPReductionPHIRecipe *PhiR,
RdxDesc.getOpcode(), PhiTy,
TargetTransformInfo::ReductionFlags())) {
auto *VecRdxPhi =
cast<PHINode>(State.get(PhiR->getVPSingleValue(), Part));
cast<PHINode>(State.get(PhiR, Part));
VecRdxPhi->setIncomingValueForBlock(
LI->getLoopFor(LoopVectorBody)->getLoopLatch(), Sel);
}
Expand Down

0 comments on commit 64bc31e

Please sign in to comment.