This is an archive of the discontinued LLVM Phabricator instance.

[X86] Move getGatherOverhead/getScatterOverhead into X86TargetTransformInfo.
ClosedPublic

Authored by craig.topper on Jul 25 2020, 11:35 PM.

Details

Summary

These cost methods don't make much sense in X86Subtarget. Make
them methods in X86's TTI and move the feature checks from the
X86Subtarget constructor into these methods.

Diff Detail

Event Timeline

craig.topper created this revision.Jul 25 2020, 11:35 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 25 2020, 11:35 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
RKSimon accepted this revision.Jul 26 2020, 1:48 AM

LGTM - cheers!

This revision is now accepted and ready to land.Jul 26 2020, 1:48 AM
This revision was automatically updated to reflect the committed changes.