This is an archive of the discontinued LLVM Phabricator instance.

[VPlan] Use VPOpWithIRFlags for VPReplicateRecipe, retire poison map.
ClosedPublic

Authored by fhahn on May 6 2023, 2:22 AM.

Details

Summary

Update VPReplicateRecipe to use VPRecipeWithIRFlags for IR flag
handling. Retire separate MayGeneratePoisonRecipes map.

Depends on D149082.

Diff Detail

Event Timeline

fhahn created this revision.May 6 2023, 2:22 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 6 2023, 2:22 AM
fhahn requested review of this revision.May 6 2023, 2:22 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 6 2023, 2:22 AM
fhahn updated this revision to Diff 520321.May 8 2023, 3:41 AM

Rebased on top of latest version of D149079.

Ayal accepted this revision.May 8 2023, 5:01 AM

LGTM with a couple of minor nits.

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
1085–1086

Update above comment and remove TODO below?

1086–1095
2802

Above is redundant and should be dropped?

This revision is now accepted and ready to land.May 8 2023, 5:01 AM
This revision was landed with ongoing or failed builds.May 15 2023, 3:50 AM
This revision was automatically updated to reflect the committed changes.
fhahn marked 3 inline comments as done.
fhahn added inline comments.May 15 2023, 3:50 AM
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
1085–1086

Done in the committed version, thanks!

1086–1095

Done in the committed version, thanks!

2802

Dropped together wit the comment which is stale now.

Ayal added inline comments.May 15 2023, 4:18 AM
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
1086–1095

nit: can drop {} from "then", to align "else" with "if".