Page MenuHomePhabricator

[LoopVectorize][TTI] Add an isLegalMaskedLoadStore method. NFC
AcceptedPublic

Authored by dmgreen on Jan 8 2020, 1:05 AM.

Details

Reviewers
Ayal
hsaito
fhahn
Summary

As with isLegalGatherScatter added in D71919, this adds a isLegalMaskedLoadStore method to TTI to remove the need for a similar functionality in the vectorizer.

Diff Detail

Event Timeline

dmgreen created this revision.Jan 8 2020, 1:05 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 8 2020, 1:05 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
Ayal accepted this revision.Jan 9 2020, 4:43 AM

Thanks!

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

(Can use the conventional prefix: [Is]LegalLoadStore, [Is]LegalGatherScatter; or inline everything into the return.)

This revision is now accepted and ready to land.Jan 9 2020, 4:43 AM