Skip to content

Commit a40dc05

Browse files
committed
[VPlan] Mark canonical IV and reduction phis as not writing memory (NFC).
Both recipes do not write to memory. Should be NFC at the moment, as they cannot be removed currently due to being in a cycle.
1 parent bd4e7f5 commit a40dc05

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,10 @@ bool VPRecipeBase::mayWriteToMemory() const {
6767
->onlyReadsMemory();
6868
case VPWidenIntrinsicSC:
6969
return cast<VPWidenIntrinsicRecipe>(this)->mayWriteToMemory();
70+
case VPCanonicalIVPHISC:
7071
case VPBranchOnMaskSC:
7172
case VPFirstOrderRecurrencePHISC:
73+
case VPReductionPHISC:
7274
case VPScalarIVStepsSC:
7375
case VPPredInstPHISC:
7476
return false;

0 commit comments

Comments
 (0)