This is an archive of the discontinued LLVM Phabricator instance.

[VPlan] Add & use VPValue operands for VPReplicateRecipe (NFC).
ClosedPublic

Authored by fhahn on May 18 2020, 3:14 AM.

Details

Summary

This patch adds VPValue version of the instruction operands to
VPReplicateRecipe and uses them during code-generation.

Diff Detail

Event Timeline

fhahn created this revision.May 18 2020, 3:14 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 18 2020, 3:14 AM
gilr accepted this revision.May 18 2020, 7:56 AM

LGTM with a nit. Thanks!

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

I'd omit "directly" to avoid implying that Operands necessarily wrap Instr's operands.

This revision is now accepted and ready to land.May 18 2020, 7:56 AM
fhahn marked an inline comment as done.May 19 2020, 7:12 AM
fhahn added inline comments.
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
445

Good point, thanks! I've dropped it in the committed version

This revision was automatically updated to reflect the committed changes.