Skip to content

Commit 3402916

Browse files
fhahngithub-actions[bot]
authored andcommitted
Automerge: [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.
2 parents 8e24023 + a40dc05 commit 3402916

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)