[LV] Drop unneeded use of getVPSingleValue (NFC).
authorFlorian Hahn <flo@fhahn.com>
Wed, 3 Nov 2021 13:26:15 +0000 (14:26 +0100)
committerFlorian Hahn <flo@fhahn.com>
Wed, 3 Nov 2021 13:26:15 +0000 (14:26 +0100)
VPReductionPHIRecipe inherits from VPValue, so there's no need to call
getVPSingleValue.

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

index 00f9cdd..47a9223 100644 (file)
@@ -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);
       }