This is an archive of the discontinued LLVM Phabricator instance.

[SLP] Pass full scalar and vector context instructions to TTI.
Needs ReviewPublic

Authored by fhahn on Aug 30 2022, 12:41 PM.

Details

Summary

Depends on D132966.

Diff Detail

Event Timeline

fhahn created this revision.Aug 30 2022, 12:41 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 30 2022, 12:41 PM
fhahn requested review of this revision.Aug 30 2022, 12:41 PM
ABataev added inline comments.Aug 30 2022, 1:02 PM
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
6441–6444

Use range-based loop

6463–6464
for (Value *V : VL.drop_front())
  OpsForVector.push_back(cast<Instruction>(V));

or some magic cast using llvm::copy

fhahn updated this revision to Diff 456976.Aug 31 2022, 8:32 AM

Address latest comments, thanks!

fhahn marked 2 inline comments as done.Aug 31 2022, 8:40 AM
fhahn added inline comments.
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
6441–6444

Thanks should be fixed!

6463–6464

Thanks, updated to a range-based for loop.