This is an archive of the discontinued LLVM Phabricator instance.

[VPlan] Use onlyFirstLaneUsed in sinkScalarOperands.
ClosedPublic

Authored by fhahn on Oct 20 2022, 10:24 AM.

Details

Summary

Replace custom code to check if only the first lane is used by generic
helper onlyFirstLaneUsed. This enables VPlan-based sinking in a few
additional cases and was suggested in D133760.

Diff Detail

Event Timeline

fhahn created this revision.Oct 20 2022, 10:24 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 20 2022, 10:24 AM
fhahn requested review of this revision.Oct 20 2022, 10:24 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 20 2022, 10:24 AM
Ayal accepted this revision.Oct 23 2022, 8:26 AM

Ship it!
Comment needs to be updated.

llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
141

Above sentence becomes obsolete.

This revision is now accepted and ready to land.Oct 23 2022, 8:26 AM
fhahn updated this revision to Diff 471769.Oct 29 2022, 11:44 AM

Rebased on top of current main, plan to land soon.

This revision was landed with ongoing or failed builds.Oct 29 2022, 11:46 AM
This revision was automatically updated to reflect the committed changes.
fhahn marked an inline comment as done.Oct 29 2022, 11:47 AM
fhahn added inline comments.
llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
141

Thanks, removed in the committed version!