This is an archive of the discontinued LLVM Phabricator instance.

[NFC][SLP] Cleanup: Replace Value* operand with Instruction* in `vectorizeRootInstruction()` and `vectorizeHorReduction()`
ClosedPublic

Authored by vporpo on Apr 28 2023, 10:04 AM.

Details

Summary

This makes it explicit that these functions work with instructions, and avoids
calling them if the operand is not an instruction.

Diff Detail

Event Timeline

vporpo created this revision.Apr 28 2023, 10:04 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 28 2023, 10:04 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
vporpo requested review of this revision.Apr 28 2023, 10:04 AM
ABataev accepted this revision.Apr 28 2023, 10:11 AM

LG with a nit

llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
14549

Just if (Root &&...

This revision is now accepted and ready to land.Apr 28 2023, 10:11 AM
vporpo updated this revision to Diff 517987.Apr 28 2023, 10:39 AM

Addressed comments

This revision was landed with ongoing or failed builds.Apr 28 2023, 12:35 PM
This revision was automatically updated to reflect the committed changes.