projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7ac595
)
[LV] Drop unneeded use of getVPSingleValue (NFC).
author
Florian Hahn
<flo@fhahn.com>
Wed, 3 Nov 2021 13:26:15 +0000
(14:26 +0100)
committer
Florian 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
patch
|
blob
|
history
diff --git
a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index
00f9cdd
..
47a9223
100644
(file)
--- 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);
}