This is an archive of the discontinued LLVM Phabricator instance.

[VPlan] Use on VPWidenRecipe per original IR instruction. (NFC).
ClosedPublic

Authored by fhahn on Mar 28 2020, 7:19 AM.

Details

Summary

This patch changes VPWidenRecipe to only store a single original IR
instruction. This is the first required step towards modeling it's
operands as VPValues and also towards breaking it up into a
VPInstruction.

Discussed as part of D74695.

Diff Detail

Event Timeline

fhahn created this revision.Mar 28 2020, 7:19 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 28 2020, 7:19 AM
gilr added inline comments.Mar 28 2020, 10:28 AM
llvm/lib/Transforms/Vectorize/VPlan.cpp
717–718

No need for the line break anymore - can be a single row as other simple recipes.

fhahn updated this revision to Diff 253364.Mar 28 2020, 11:26 AM
fhahn marked an inline comment as done.

Update test checking VPBB iterator, remove newline from printing.

gilr accepted this revision.Mar 28 2020, 11:03 PM

LGTM, with a nit.

llvm/lib/Transforms/Vectorize/VPlan.h
760–763

Comment still relates to the old range of ingredients.

766–767

Comment still relates to the old range of ingredients.

This revision is now accepted and ready to land.Mar 28 2020, 11:03 PM
This revision was automatically updated to reflect the committed changes.