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:
310b619
)
[VPlan] Use recipe type to avoid getDefiningRecipe call (NFC).
author
Florian Hahn
<flo@fhahn.com>
Wed, 16 Nov 2022 23:03:34 +0000
(23:03 +0000)
committer
Florian Hahn
<flo@fhahn.com>
Wed, 16 Nov 2022 23:03:34 +0000
(23:03 +0000)
Suggested by @Ayal during review of D136068, thanks!
llvm/lib/Transforms/Vectorize/VPlan.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Transforms/Vectorize/VPlan.cpp
b/llvm/lib/Transforms/Vectorize/VPlan.cpp
index
356b92a
..
d4e8d86
100644
(file)
--- a/
llvm/lib/Transforms/Vectorize/VPlan.cpp
+++ b/
llvm/lib/Transforms/Vectorize/VPlan.cpp
@@
-1111,7
+1111,7
@@
VPValue *vputils::getOrCreateVPValueForSCEVExpr(VPlan &Plan, const SCEV *Expr,
return Plan.getOrAddExternalDef(E->getValue());
VPBasicBlock *Preheader = Plan.getEntry()->getEntryBasicBlock();
- VP
Valu
e *Step = new VPExpandSCEVRecipe(Expr, SE);
- Preheader->appendRecipe(Step
->getDefiningRecipe()
);
+ VP
ExpandSCEVRecip
e *Step = new VPExpandSCEVRecipe(Expr, SE);
+ Preheader->appendRecipe(Step);
return Step;
}