[llvm] 64bc31e - [LV] Drop unneeded use of getVPSingleValue (NFC).
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 3 06:26:34 PDT 2021
Author: Florian Hahn
Date: 2021-11-03T14:26:15+01:00
New Revision: 64bc31ee933df0163ad1e1bb763ef631526b40c6
URL: https://github.com/llvm/llvm-project/commit/64bc31ee933df0163ad1e1bb763ef631526b40c6
DIFF: https://github.com/llvm/llvm-project/commit/64bc31ee933df0163ad1e1bb763ef631526b40c6.diff
LOG: [LV] Drop unneeded use of getVPSingleValue (NFC).
VPReductionPHIRecipe inherits from VPValue, so there's no need to call
getVPSingleValue.
Added:
Modified:
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index 00f9cdd98ce4..47a9223bcb02 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<PHINode>(State.get(PhiR->getVPSingleValue(), Part));
+ cast<PHINode>(State.get(PhiR, Part));
VecRdxPhi->setIncomingValueForBlock(
LI->getLoopFor(LoopVectorBody)->getLoopLatch(), Sel);
}
More information about the llvm-commits
mailing list