This is an archive of the discontinued LLVM Phabricator instance.

[VPlan] Check if recipe is in ReplicateRegion for IfPredicateInstr (NFC)
ClosedPublic

Authored by fhahn on Mar 5 2023, 11:36 AM.

Details

Summary

Check if replicate recipe is in a replicate region when considering to
collect predicated instructions. This allows use IsPredicated for
recipes with a mask attached directly in D143865.

Diff Detail

Event Timeline

fhahn created this revision.Mar 5 2023, 11:36 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 5 2023, 11:36 AM
fhahn requested review of this revision.Mar 5 2023, 11:36 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 5 2023, 11:36 AM
Ayal accepted this revision.Mar 8 2023, 1:37 AM

Part of moving predicated replicate recipes to either contain a mask operand or be embedded within a replicating region, changing their internal IsPredicated to represent the former but not the latter.

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
2939

nit: once D140243 retires the original IR sinkScalarOperands(), PredicatedInstructions will no longer be needed.

This revision is now accepted and ready to land.Mar 8 2023, 1:37 AM
fhahn updated this revision to Diff 503277.Mar 8 2023, 2:13 AM

Rebase before landing, thanks for the review!

This revision was landed with ongoing or failed builds.Mar 8 2023, 2:40 AM
This revision was automatically updated to reflect the committed changes.
fhahn marked an inline comment as done.Mar 8 2023, 3:06 AM
fhahn added inline comments.
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
2939

Yes, I need to rebase those patches soon!