This is an archive of the discontinued LLVM Phabricator instance.

[VPlan] Use VPIRFlags for VPWidenGEPRecipe (NFCI).
ClosedPublic

Authored by fhahn on Apr 24 2023, 10:45 AM.

Details

Summary

Extend VPIRFlags to also include InBounds and use for VPWidenGEPRecipe.

The last remaining recipe that needs updating for
MayGeneratePoisonRecipes is VPReplicateRecipe.

Depends on D149081.

Diff Detail

Event Timeline

fhahn created this revision.Apr 24 2023, 10:45 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 24 2023, 10:45 AM
fhahn requested review of this revision.Apr 24 2023, 10:45 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 24 2023, 10:45 AM
Ayal added a comment.May 3 2023, 2:33 PM

LGTM, pending points raised in D149081 review.

llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
803

Call transferFlags() instead, if only to be consistent and exercised?

fhahn updated this revision to Diff 519638.May 4 2023, 1:47 PM
fhahn marked an inline comment as done.

rebased and updated to use transferFlags.

fhahn updated this revision to Diff 520051.May 6 2023, 2:13 AM

Rebase after recent changes to D149079.

fhahn updated this revision to Diff 520320.May 8 2023, 3:40 AM

Rebased on top of D149079.

fhahn added inline comments.May 8 2023, 3:46 AM
llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
803

Updated, thanks!

Ayal accepted this revision.May 8 2023, 4:52 AM

LGTM with a couple of minor nits.

llvm/lib/Transforms/Vectorize/VPlan.h
945–947

Just to be consistent, GEP is introduced between Exact and FMF in all that follows.

llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
838–840

Simpler in this case to pass GEPFlags.IsInBounds to CreateGEP()?

This revision is now accepted and ready to land.May 8 2023, 4:52 AM
This revision was landed with ongoing or failed builds.May 9 2023, 4:37 AM
This revision was automatically updated to reflect the committed changes.
Ayal added a comment.May 9 2023, 6:02 AM

(post-commit: note last minor nits, which can be discarded if preferred.)

fhahn added a comment.May 9 2023, 7:20 AM

(post-commit: note last minor nits, which can be discarded if preferred.)

Sorry I missed those, should be addressed in c096e91735397e2f2892ede9ece50bf4693d94ac